diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-26 07:00:23 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-26 07:00:23 +0000 |
commit | 178aa1b8b0e0e38f9f52b0dac6ee012dc7f2a7e5 (patch) | |
tree | a77c210fd34e15994b01b009a6c337b601ef619e /include/makeinclude/platform_freebsd.GNU | |
parent | 12852c665f11f119db61baa6dab4d5ee040311f0 (diff) | |
download | ATCD-178aa1b8b0e0e38f9f52b0dac6ee012dc7f2a7e5.tar.gz |
Consolidated the two freebsd platform macro files.
Diffstat (limited to 'include/makeinclude/platform_freebsd.GNU')
-rw-r--r-- | include/makeinclude/platform_freebsd.GNU | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/include/makeinclude/platform_freebsd.GNU b/include/makeinclude/platform_freebsd.GNU index 5b1e56f6ad8..22d55069f0e 100644 --- a/include/makeinclude/platform_freebsd.GNU +++ b/include/makeinclude/platform_freebsd.GNU @@ -2,27 +2,37 @@ # platform_freebsd.GNU -# ***** Notice: This file is still under testing. ***** -# To be used on FreeBSD platform without pthread support. +##################################################### +# Replace 3 with 2 if you are running FreeBSD 2.x.x +# ** How do we detect os version here? +##################################################### +VERSION = 3 -debug = 1 -optimize = 1 +ifneq ($(VERSION),3) versioned_so = 1 +endif + +optimize = 1 + +debug = 1 CC = gcc CXX = g++ -CFLAGS += -w -fno-strict-prototypes +CFLAGS += -Wall -Wpointer-arith -pipe CCFLAGS += $(CFLAGS) -fno-implicit-templates DCFLAGS += -g -DLD = ld +ifeq ($(VERSION),3) + LDFLAGS += -Wl,-rpath $(ACE_ROOT)/ace +endif +DLD = $(CXX) LD = $(CXX) -LIBS += -lstdc++ -lcompat +LIBS += -lstdc++ OCFLAGS += -O2 -PIC = -fpic -DPIC +PIC = -fpic AR = ar ARFLAGS = ruv RANLIB = ranlib -SOFLAGS = -Bshareable -x /usr/lib/c++rt0.o +SOFLAGS = $(CPPFLAGS) -shared SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< PRELIB = @echo |