fix some make rules
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Nov 2015 21:43:39 +0000 (23:43 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Nov 2015 21:43:39 +0000 (23:43 +0200)
some toolchains want CXX for linking as some objects are c++

Makefile

index 01c529c..39630ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,13 +37,11 @@ libpnd.a:   ${ALLOBJ} ${XMLOBJ}
        ${AR} r ${LIB} ${ALLOBJ} ${XMLOBJ}
        ${RANLIB} ${LIB}
 
-libpnd.so.1:   ${ALLOBJ} ${XMLOBJ}
-       ${CC} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
+${SOLIB}:      ${SOLIB1}
        ln -f -s ${SOLIB1} ${SOLIB}
 
 ${SOLIB1}:     ${ALLOBJ} ${XMLOBJ}
-       ${CC} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
-       ln -f -s ${SOLIB1} ${SOLIB}
+       ${CXX} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
 
 pndnotifyd:    pndnotifyd.o ${SOLIB1}
        ${CXX}  -o bin/pndnotifyd pndnotifyd.o ${SOLIB1}