diff options
author | Adam Mitz <mitza@ociweb.com> | 2015-06-09 15:23:39 -0500 |
---|---|---|
committer | Adam Mitz <mitza@ociweb.com> | 2015-06-09 15:23:39 -0500 |
commit | 4c309562d826575f4a16c886768b10a60e5cf1df (patch) | |
tree | 362bf8a8c8aaa9e78781b5317aebbc18ef9fef18 | |
parent | 243dc9722b6c0914335e5af53148c44d659c820e (diff) | |
download | ATCD-4c309562d826575f4a16c886768b10a60e5cf1df.tar.gz |
Settings for reducing dependencies on Linux system libraries.
Building with these options and other related settings in platform_macros.GNU,
one can create executables that can run on older Linux distros.
-rw-r--r-- | ACE/include/makeinclude/platform_linux.GNU | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ACE/include/makeinclude/platform_linux.GNU b/ACE/include/makeinclude/platform_linux.GNU index 26e550317ba..df2f20b6338 100644 --- a/ACE/include/makeinclude/platform_linux.GNU +++ b/ACE/include/makeinclude/platform_linux.GNU @@ -56,7 +56,10 @@ DCFLAGS += -ggdb DCCFLAGS += -ggdb DLD = $(CXX) LD = $(CXX) -LIBS += -ldl + +ifneq ($(dynamic_loader),0) + LIBS += -ldl +endif ifeq ($(threads),1) FLAGS_C_CC += -pthread @@ -68,6 +71,10 @@ ifeq ($(optimize),1) SOFLAGS += -Wl,-O3 endif +ifeq ($(static_stdlibs),1) + LDFLAGS += -static-libgcc -static-libstdc++ +endif + SOFLAGS += -shared SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<; \ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o |