diff options
author | bouyer <bouyer@pkgsrc.org> | 1999-12-02 17:01:05 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 1999-12-02 17:01:05 +0000 |
commit | 26e02a503ec8bb736cfed07389a3779ddc78d747 (patch) | |
tree | f7ee6c407a3eec18bfc09619bd116dccfb35f78d /editors/pico/patches/patch-ae | |
parent | 6536d210a6077150468cfb2b64be3d899e6e4edc (diff) | |
download | pkgsrc-26e02a503ec8bb736cfed07389a3779ddc78d747.tar.gz |
Make it compile on solaris
Diffstat (limited to 'editors/pico/patches/patch-ae')
-rw-r--r-- | editors/pico/patches/patch-ae | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/editors/pico/patches/patch-ae b/editors/pico/patches/patch-ae new file mode 100644 index 00000000000..dc02ff843ba --- /dev/null +++ b/editors/pico/patches/patch-ae @@ -0,0 +1,56 @@ +$NetBSD: patch-ae,v 1.3 1999/12/02 17:01:05 bouyer Exp $ + +--- pico/makefile.sol.orig Tue Jun 30 00:23:56 1998 ++++ pico/makefile.sol Thu Dec 2 17:54:23 1999 +@@ -32,25 +32,13 @@ + RM= rm -f + LN= ln -s + MAKE= make +-OPTIMIZE= # -O ++OPTIMIZE= -O2 + PROFILE= # -pg +-DEBUG= -g -DDEBUG +- +-# LDCC= /usr/bin/cc +-# If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it, +-# it only has /usr/ucb/cc) then change LDCC to the following line and +-# give that a try. This is still using the Solaris compiler but +-# leaving out the UCB compatibility includes and libraries. +-LDCC= ./cc5.sol ++DEBUG= # -g -DDEBUG + + STDCFLAGS= -Dconst= -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE + CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS) + +-# switches for library building +-LIBCMD= ar +-LIBARGS= ru +-RANLIB= true +- + LIBS= $(EXTRALIBES) -ltermlib + + OFILES= attach.o basic.o bind.o browse.o buffer.o \ +@@ -64,17 +52,17 @@ + # dependencies for the Unix versions of pico and libpico.a + # + all: pico pilot +-pico pilot: libpico.a ++pico pilot: libpico.la + + pico: main.o +- $(LDCC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico ++ $(CC) $(CFLAGS) main.o libpico.la $(LIBS) -o pico + + pilot: pilot.o +- $(LDCC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot ++ $(CC) $(CFLAGS) pilot.o libpico.la $(LIBS) -o pilot + +-libpico.a: $& $(OFILES) +- $(LIBCMD) $(LIBARGS) libpico.a $(OFILES) +- $(RANLIB) libpico.a ++libpico.la: $(OFILES) ++ $(CC) -o libpico.la $(OFILES:.o=.lo) -rpath $(PREFIX)/lib \ ++ -version-info 3:0 + + clean: + rm -f *.a *.o *~ pico_os.c os.h pico pilot |