]> git.openpandora.org Git - pandora-libraries.git/commitdiff
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 01c529c027fab75232a9ba44fa44c279bff0b974..39630ba686374ffb6403392939d2f6c01d7eeda4 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}