summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_linux_lxpthread.GNU
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-04 17:08:32 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-04 17:08:32 +0000
commit9812a59e1528044d09a8a39df7febde91fdca47d (patch)
tree535b327ee54f208eac40bb40ca239c4d54a1f4aa /include/makeinclude/platform_linux_lxpthread.GNU
parentdc52f1c9d6ba6e198a635c5db38694378e8e5c18 (diff)
downloadATCD-9812a59e1528044d09a8a39df7febde91fdca47d.tar.gz
separated SOBUILD into compile and link steps
Diffstat (limited to 'include/makeinclude/platform_linux_lxpthread.GNU')
-rw-r--r--include/makeinclude/platform_linux_lxpthread.GNU18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/makeinclude/platform_linux_lxpthread.GNU b/include/makeinclude/platform_linux_lxpthread.GNU
index 2032db1a833..68f14e3d094 100644
--- a/include/makeinclude/platform_linux_lxpthread.GNU
+++ b/include/makeinclude/platform_linux_lxpthread.GNU
@@ -2,31 +2,33 @@
# For pthreads support on Linux, you need
# -D_POSIX_THREADS
-# -D_POSIX_THREAD_SAFE_FUNCTIONS
+# -D_POSIX_THREAD_SAFE_FUNCTIONS
# in the CXX command line. Also, add -lpthreads to the LIBS.
# libpthreads.so comes with the sources of Linux libc-5.3.*, you need
-# to compile it yourself (no binaries included) --
+# to compile it yourself (no binaries included) --
# Jan Rychter <jwr@icm.edu.pl>
debug = 1
optimize = 1
CC = gcc
-CXX = g++
-CFLAGS += -Wall -pipe -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT
+CXX = g++
+CFLAGS += -Wall -pipe \
+ -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT
CCFLAGS += $(CFLAGS) -fno-implicit-templates
-DCFLAGS += -g
+DCFLAGS += -g
DLD = $(CXX)
-LD = $(CXX)
+LD = $(CXX)
LIBS += -ldl -lpthread
-OCFLAGS += -O3
+OCFLAGS += -O3
PIC = -fPIC
AR = ar
ARFLAGS = ruv
RANLIB = ranlib
SOFLAGS = $(CPPFLAGS) -shared
-SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
# Added line below to support "Executable Shared Object" files (as
# needed by the service configurator).
# Marius Kjeldahl <mariusk@sn.no, marius@funcom.com>