diff options
Diffstat (limited to 'devel/libcoro/files/patch-ab')
-rw-r--r-- | devel/libcoro/files/patch-ab | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/libcoro/files/patch-ab b/devel/libcoro/files/patch-ab new file mode 100644 index 000000000000..2c7ed72f5955 --- /dev/null +++ b/devel/libcoro/files/patch-ab @@ -0,0 +1,39 @@ +--- arch/x86-freebsd/Makefile.in.orig Fri Jun 23 12:43:22 2000 ++++ arch/x86-freebsd/Makefile.in Fri Jun 23 12:50:30 2000 +@@ -1,22 +1,27 @@ +-CFLAGS=-O2 -Wall ++CFLAGS?=-O2 -Wall ++CFLAGS+=-fPIC -DPIC + + MAN=@MANSRC@ + LINST=@LINST@ + HINST=@HINST@ + MINST=@MINST@ + +-all: libcoro.a ++SHARED_LIB=libcoro.so.1 ++SHORT_SHARED_LIB=libcoro.so + +-libcoro.a: coro.o ++all: $(SHARED_LIB) ++ ++$(SHARED_LIB): coro.o + rm -f $@ +- ar rcs $@ coro.o ++ $(CC) -shared -Wl,-soname -Wl,$(SHARED_LIB) -o $(SHARED_LIB) coro.o + + coro.o: coro.h + +-install: libcoro.a coro.h $(MAN) +- install -m 644 libcoro.a $(LINST)/libcoro.a +- install -m 644 coro.h $(HINST)/coro.h +- install -m 644 $(MAN) $(MINST)/man2/coro.2 ++install: all $(MAN) ++ $(BSD_INSTALL_PROGRAM) $(SHARED_LIB) $(LINST)/$(SHARED_LIB) ++ ln -sf $(LINST)/$(SHARED_LIB) $(LINST)/$(SHORT_SHARED_LIB) ++ $(BSD_INSTALL_DATA) coro.h $(HINST)/coro.h ++ $(BSD_INSTALL_MAN) $(MAN) $(MINST)/man2/coro.2 + + clean: +- rm -f libcoro.a coro.o ++ rm -f $(SHARED_LIB) coro.o |