aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2008-02-04 22:29:52 +0000
committerGunter Knauf <gk@gknw.de>2008-02-04 22:29:52 +0000
commit4b5c504bd4c1e73a7bcbb3cd7a23ac8e4619cf61 (patch)
treec794437ff79bb6ee5cfe1f31a677f76b3d34d126 /lib
parentffae4f6b48cc8d227a41701f8f043bd8549b4ba3 (diff)
added makefile flag to link with NLM POSIX semantics.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.netware14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Makefile.netware b/lib/Makefile.netware
index 1ba513810..6dad99999 100644
--- a/lib/Makefile.netware
+++ b/lib/Makefile.netware
@@ -42,6 +42,9 @@ STACK = 64000
SCREEN = none
EXPORTS = @libcurl.imp
+# Uncomment the next line to enable linking with POSIX semantics.
+# POSIXFL = 1
+
# Edit the var below to point to your lib architecture.
ifndef LIBARCH
LIBARCH = LIBC
@@ -102,7 +105,11 @@ CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
CFLAGS += -relax_pointers
#CFLAGS += -w on
ifeq ($(LIBARCH),LIBC)
+ifeq ($(POSIXFL),1)
+ PRELUDE = $(SDK_LIBC)/imports/posixpre.o
+else
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
+endif
CFLAGS += -align 4
else
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
@@ -121,7 +128,11 @@ RANLIB = ranlib
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
CFLAGS += -Wall # -pedantic
ifeq ($(LIBARCH),LIBC)
+ifeq ($(POSIXFL),1)
+ PRELUDE = $(SDK_LIBC)/imports/posixpre.gcc.o
+else
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
+endif
else
PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
@@ -313,6 +324,9 @@ ifndef DISABLE_LDAP
endif
@echo $(DL)module clib$(DL) >> $@
else
+ifeq ($(POSIXFL),1)
+ @echo $(DL)flag_on 4194304$(DL) >> $@
+endif
@echo $(DL)pseudopreemption$(DL) >> $@
@echo $(DL)start _LibCPrelude$(DL) >> $@
@echo $(DL)exit _LibCPostlude$(DL) >> $@