From: Grazvydas Ignotas Date: Fri, 20 Nov 2015 21:43:39 +0000 (+0200) Subject: fix some make rules X-Git-Tag: sz_173~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=46ccdb59bd2fc2052eef3489afc12e742bbc1f30 fix some make rules some toolchains want CXX for linking as some objects are c++ --- diff --git a/Makefile b/Makefile index 01c529c..39630ba 100644 --- 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}