diff options
Diffstat (limited to 'include/makeinclude/platform_netbsd.GNU')
-rw-r--r-- | include/makeinclude/platform_netbsd.GNU | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/include/makeinclude/platform_netbsd.GNU b/include/makeinclude/platform_netbsd.GNU index 2ee9697cabd..f847b5e03d2 100644 --- a/include/makeinclude/platform_netbsd.GNU +++ b/include/makeinclude/platform_netbsd.GNU @@ -2,54 +2,33 @@ # platform_netbsd.GNU -versioned_so = 1 - -ifndef exceptions - exceptions = 1 -endif - -ifeq (,$(debug)) - debug = 1 -endif - -ifeq (,$(optimize)) - optimize = 1 -endif - -ifeq (,$(threads)) - threads = 1 -endif +# ***** Notice: This file is still under testing. ***** +# To be used on netbsd platform without pthread support. -pipes ?= 1 +debug = 1 +optimize = 1 +versioned_so = 1 CC = gcc CXX = g++ -CFLAGS += -W -Wall -Wpointer-arith +CFLAGS += -w -fno-strict-prototypes DCFLAGS += -g -LDFLAGS += -Wl,-rpath $(ACE_ROOT)/ace -DLD = $(CXX) +DLD = ld LD = $(CXX) -LIBS += -OCFLAGS += -O2 -PIC = -fpic +LIBS += -lstdc++ #-lcompat -lresolv +##OCFLAGS += -O2 +PIC = -fpic -DPIC AR = ar ARFLAGS = ruv RANLIB = ranlib -SOFLAGS += $(CPPFLAGS) -shared +SOFLAGS += -Bshareable -x /usr/lib/c++rt0.o SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< PRELIB = @echo -ifeq ($(threads),1) -LDFLAGS += -pthread -CFLAGS += -D_REENTRANT -DACE_HAS_THREADS -endif # threads - -# Test for template instantiation, add to SOFLAGS if versioned_so set, +# Test for template instantiation, add to SOFLAGS if SONAME set, # add -E to LDFLAGS if using GNU ld # include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU - CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG) - |