]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
added makefile flag to link with NLM POSIX semantics.
authorGunter Knauf <gk@gknw.de>
Mon, 4 Feb 2008 22:29:52 +0000 (22:29 +0000)
committerGunter Knauf <gk@gknw.de>
Mon, 4 Feb 2008 22:29:52 +0000 (22:29 +0000)
lib/Makefile.netware
src/Makefile.netware

index 1ba513810bf1d526f3b27a7736e31165cf1737d5..6dad99999f813aee6248648ba855612525b1cc88 100644 (file)
@@ -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) >> $@
index 3b101b955084d8f02d56323fb70cbaca46c0d469..661c7d1a4cd35abd79b2eb3cd01245fdc8ccc199 100644 (file)
@@ -41,7 +41,10 @@ MTSAFE       = YES
 STACK  = 64000
 SCREEN = $(TARGET) commandline utility
 # Comment the line below if you dont want to load protected automatically.
-#LDRING        = 3
+# LDRING = 3
+
+# Uncomment the next line to enable linking with POSIX semantics.
+# POSIXFL = 1
 
 # Edit the var below to point to your lib architecture.
 ifndef LIBARCH
@@ -99,7 +102,11 @@ CFLAGS      += -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
@@ -115,7 +122,11 @@ LIBEXT     = a
 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
@@ -300,6 +311,9 @@ ifndef DISABLE_LDAP
 endif
        @echo $(DL)module clib$(DL) >> $@
 else
+ifeq ($(POSIXFL),1)
+       @echo $(DL)flag_on 4194304$(DL) >> $@
+endif
        @echo $(DL)flag_on 64$(DL) >> $@
        @echo $(DL)pseudopreemption$(DL) >> $@
        @echo $(DL)start _LibCPrelude$(DL) >> $@