summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>2002-02-11 01:56:41 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-11 14:32:12 +0000
commita64c954a1bae6e00706f368c6d1ae9d131a4361d (patch)
treec106c6ba370e9bb68f72fff73689ed5f483e9075 /os2
parenta77eafec20d39a9432a97557c1161fb77fdf7f3d (diff)
downloadperl-a64c954a1bae6e00706f368c6d1ae9d131a4361d.tar.gz
OS/2 build
Message-ID: <20020211065640.A14993@math.ohio-state.edu> (sans the Configure, perlio.sym, and t/op/stat.t parts) p4raw-id: //depot/perl@14641
Diffstat (limited to 'os2')
-rw-r--r--os2/Makefile.SHs7
-rw-r--r--os2/os2.c6
-rw-r--r--os2/os2ish.h1
3 files changed, 13 insertions, 1 deletions
diff --git a/os2/Makefile.SHs b/os2/Makefile.SHs
index 9c44823a21..23f6eadf06 100644
--- a/os2/Makefile.SHs
+++ b/os2/Makefile.SHs
@@ -55,6 +55,7 @@ AOUT_EXTRA_LIBS = $aout_extra_libs
!GROK!THIS!
$spitshell >>Makefile <<'!NO!SUBS!'
+PREPLIBRARY_LIBPERL = $(LIBPERL)
$(LIBPERL): perl.imp $(PERL_DLL) perl5.def libperl_override.lib
emximp -o $(LIBPERL) perl.imp
cp $(LIBPERL) perl.lib
@@ -126,7 +127,11 @@ perl.linkexp: perl.exports perl.map os2/os2.sym
# We link miniperl statically, since .DLL depends on $(DYNALOADER)
-miniperl.map miniperl: $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT)
+miniperl.map: miniperl
+
+miniperl.exe: miniperl
+
+miniperl: $(obj) perl$(OBJ_EXT) miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT)
$(CC) $(CLDFLAGS) -o miniperl miniperlmain$(OBJ_EXT) perl$(OBJ_EXT) `echo $(obj)|sed -e 's/\bop\./opmini./g'` $(libs) -Zmap -Zlinker /map/PM:VIO
@./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
diff --git a/os2/os2.c b/os2/os2.c
index 830d900163..8a32ee4d8e 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -2939,3 +2939,9 @@ my_getpwnam (__const__ char *n)
{
return passw_wrap(getpwnam(n));
}
+
+char *
+gcvt_os2 (double value, int digits, char *buffer)
+{
+ return gcvt (value, digits, buffer);
+}
diff --git a/os2/os2ish.h b/os2/os2ish.h
index 68b4dd9820..034fe82836 100644
--- a/os2/os2ish.h
+++ b/os2/os2ish.h
@@ -310,6 +310,7 @@ int my_rmdir (__const__ char *);
struct passwd *my_getpwent (void);
void my_setpwent (void);
void my_endpwent (void);
+char *gcvt_os2(double value, int digits, char *buffer);
struct group *getgrent (void);
void setgrent (void);