From bb4fcf49a56383a421ab4e672a4bbb06d64d68b0 Mon Sep 17 00:00:00 2001 From: Carlos Falcon Date: Thu, 11 Oct 2018 11:24:41 +0200 Subject: [PATCH] Fix MakeFile The generated library is wrong (has undefined symbol) since tango libraries are not set. Add them and a linker flag to report this error. When creating a shared object, this flag will cause the link to fail if there are unresolved symbols --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4762d031..eb5bd842 100644 --- a/Makefile +++ b/Makefile @@ -28,12 +28,12 @@ ifdef LIBHDBPP_INC endif CXXFLAGS += -std=gnu++0x -Wall -DRELEASE='"$HeadURL$ "' $(DBIMPL_INC) $(INC_DIR) -LDFLAGS += $(LIB_DIR) +LDFLAGS += $(LIB_DIR) -ltango -lomnithread -lomniORB4 ############################################## # support for shared libray versioning # -LFLAGS_SONAME = $(DBIMPL_LIB) $(LDFLAGS) -Wl,-soname, +LFLAGS_SONAME = $(DBIMPL_LIB) $(LDFLAGS) -Wl,-z,defs,-soname, SHLDFLAGS = -shared BASELIBNAME = libhdb++mysql SHLIB_SUFFIX = so