From b49d497bfbd00017f06f3f9740c4caa9266c7399 Mon Sep 17 00:00:00 2001 From: agibert Date: Tue, 11 Jan 2005 21:03:53 +0000 Subject: [PATCH] Add unconditionally -rdynamic and -ldl to CFLAGS. --- demo/Makefile | 11 ++++++----- util/Makefile | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index 4fcb745..eed9e02 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -14,8 +14,9 @@ DEP_STATIC = ../lib/libnode.a DEP_DYNAMIC = ../lib/libnode.so INCLUDE = -I . -I ../include LIBDIR = -L . -L ../lib -LIB_STATIC = ../lib/libnode.a -LIB_DYNAMIC = -lnode +LIB_STATIC = ../lib/libnode.a -ldl +LIB_DYNAMIC = -lnode -ldl +CFLAGS = -rdynamic ifdef _LIBVER_SUPPORT DEP_STATIC += ../../libver/ver.h ../../libver/libver.a @@ -27,11 +28,11 @@ ifdef _LIBVER_SUPPORT LIB_STATIC += ../../libver/lib/libver.a LIB_DYNAMIC += -lver else - LIB_STATIC += -ldl ../../libver/lib/libver.a - LIB_DYNAMIC += -ldl -lver + LIB_STATIC += ../../libver/lib/libver.a + LIB_DYNAMIC += -lver endif - CFLAGS += -D_LIBVER_SUPPORT -rdynamic + CFLAGS += -D_LIBVER_SUPPORT endif ND_CHECK_FLAGS = -DND_MODE=0 diff --git a/util/Makefile b/util/Makefile index d5844b0..9e2ac6b 100644 --- a/util/Makefile +++ b/util/Makefile @@ -15,8 +15,9 @@ DEP_STATIC = ../lib/libnode.a DEP_DYNAMIC = ../lib/libnode.so INCLUDE = -I . -I ../include LIBDIR = -L . -L ../lib -LIB_STATIC = ../lib/libnode.a -LIB_DYNAMIC = -lnode +LIB_STATIC = ../lib/libnode.a -ldl +LIB_DYNAMIC = -lnode -ldl +CFLAGS = -rdynamic ifdef _LIBVER_SUPPORT DEP_STATIC += ../../libver/ver.h ../../libver/libver.a @@ -28,11 +29,11 @@ ifdef _LIBVER_SUPPORT LIB_STATIC += ../../libver/lib/libver.a LIB_DYNAMIC += -lver else - LIB_STATIC += -ldl ../../libver/lib/libver.a - LIB_DYNAMIC += -ldl -lver + LIB_STATIC += ../../libver/lib/libver.a + LIB_DYNAMIC += -lver endif - CFLAGS += -D_LIBVER_SUPPORT -rdynamic + CFLAGS += -D_LIBVER_SUPPORT endif ND_CHECK_FLAGS = -DND_MODE=0