fixed entry symbols when linked with posix prelude.
authorGunter Knauf <gk@gknw.de>
Mon, 4 Feb 2008 22:40:59 +0000 (22:40 +0000)
committerGunter Knauf <gk@gknw.de>
Mon, 4 Feb 2008 22:40:59 +0000 (22:40 +0000)
lib/Makefile.netware
src/Makefile.netware

index 6dad999..981b92d 100644 (file)
@@ -328,9 +328,14 @@ ifeq ($(POSIXFL),1)
        @echo $(DL)flag_on 4194304$(DL) >> $@
 endif
        @echo $(DL)pseudopreemption$(DL) >> $@
+ifeq ($(findstring posixpre,$(PRELUDE)),posixpre)
+       @echo $(DL)start POSIX_Start$(DL) >> $@
+       @echo $(DL)exit POSIX_Stop$(DL) >> $@
+else
        @echo $(DL)start _LibCPrelude$(DL) >> $@
        @echo $(DL)exit _LibCPostlude$(DL) >> $@
        @echo $(DL)check _LibCCheckUnload$(DL) >> $@
+endif
        @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
        @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
 ifndef DISABLE_LDAP
index 661c7d1..7818391 100644 (file)
@@ -316,9 +316,14 @@ ifeq ($(POSIXFL),1)
 endif
        @echo $(DL)flag_on 64$(DL) >> $@
        @echo $(DL)pseudopreemption$(DL) >> $@
+ifeq ($(findstring posixpre,$(PRELUDE)),posixpre)
+       @echo $(DL)start POSIX_Start$(DL) >> $@
+       @echo $(DL)exit POSIX_Stop$(DL) >> $@
+else
        @echo $(DL)start _LibCPrelude$(DL) >> $@
        @echo $(DL)exit _LibCPostlude$(DL) >> $@
        @echo $(DL)check _LibCCheckUnload$(DL) >> $@
+endif
        @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
        @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
 ifndef DISABLE_LDAP