From 10a6a983c5cb96b9176e307f830c60a863d934b6 Mon Sep 17 00:00:00 2001 From: agibert Date: Thu, 23 Jan 2003 00:21:20 +0000 Subject: [PATCH] Add lib subdir to libver, Fix unexported local symbols by adding -rdynamic flag in linking. --- demo/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index b5c1528..acacd18 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -1,18 +1,18 @@ -ifdef _LIBVER_SUPPORT - DEP_STATIC += ../../libver/ver.h ../../libver/libver.a - DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so - INCLUDE += -I ../../libver - LIBDIR += -L ../../libver +ifdef LIBVER_SUPPORT + DEP_STATIC += ../../libver/lib/ver.h ../../libver/lib/libver.a + DEP_DYNAMIC += ../../libver/lib/ver.h ../../libver/lib/libver.so + INCLUDE += -I ../../libver/lib + LIBDIR += -L ../../libver/lib ifeq ($(OSTYPE),linux-gnu) - LIB_STATIC += ../../libver/libver.a + LIB_STATIC += ../../libver/lib/libver.a LIB_DYNAMIC += -lver else - LIB_STATIC += -ldl ../../libver/libver.a + LIB_STATIC += -ldl ../../libver/lib/libver.a LIB_DYNAMIC += -ldl -lver endif - FLAG += -D_LIBVER_SUPPORT + FLAG += -D_LIBVER_SUPPORT -rdynamic endif all: demo0 demo0-static