From 46ccdb59bd2fc2052eef3489afc12e742bbc1f30 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Fri, 20 Nov 2015 23:43:39 +0200 Subject: [PATCH] fix some make rules some toolchains want CXX for linking as some objects are c++ --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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} -- 2.39.2