Add lib subdir to libver,
Change _LIBVER_SUPPORT by LIBVER_SUPPORT, Fix unexported local symbols by adding -rdynamic flag in linking.
This commit is contained in:
parent
c4969560a3
commit
0514715693
@ -1,18 +1,18 @@
|
|||||||
ifdef _LIBVER_SUPPORT
|
ifdef LIBVER_SUPPORT
|
||||||
DEP_STATIC += ../../libver/ver.h ../../libver/libver.a
|
DEP_STATIC += ../../libver/lib/ver.h ../../libver/lib/libver.a
|
||||||
DEP_DYNAMIC += ../../libver/ver.h ../../libver/libver.so
|
DEP_DYNAMIC += ../../libver/lib/ver.h ../../libver/lib/libver.so
|
||||||
INCLUDE += -I ../../libver
|
INCLUDE += -I ../../libver/lib
|
||||||
LIBDIR += -L ../../libver
|
LIBDIR += -L ../../libver/lib
|
||||||
|
|
||||||
ifeq ($(OSTYPE),linux-gnu)
|
ifeq ($(OSTYPE),linux-gnu)
|
||||||
LIB_STATIC += ../../libver/libver.a
|
LIB_STATIC += ../../libver/lib/libver.a
|
||||||
LIB_DYNAMIC += -lver
|
LIB_DYNAMIC += -lver
|
||||||
else
|
else
|
||||||
LIB_STATIC += -ldl ../../libver/libver.a
|
LIB_STATIC += -ldl ../../libver/lib/libver.a
|
||||||
LIB_DYNAMIC += -ldl -lver
|
LIB_DYNAMIC += -ldl -lver
|
||||||
endif
|
endif
|
||||||
|
|
||||||
FLAG_VER = -D_LIBVER_SUPPORT
|
FLAG_VER = -D_LIBVER_SUPPORT -rdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: ndbench ndbench-static
|
all: ndbench ndbench-static
|
||||||
|
Loading…
Reference in New Issue
Block a user