diff options
author | Steve Price <steve@FreeBSD.org> | 1998-10-21 01:12:01 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1998-10-21 01:12:01 +0000 |
commit | 4aa9616805b776d4e4b8bac4d13d70e87031c07b (patch) | |
tree | f9e1e3a42b75c0592e099bef497b4810eab40151 /devel/libdlmalloc | |
parent | 3028b5f13c2137db2872feff37b615025be66d83 (diff) | |
download | ports-4aa9616805b776d4e4b8bac4d13d70e87031c07b.tar.gz ports-4aa9616805b776d4e4b8bac4d13d70e87031c07b.zip |
Notes
Diffstat (limited to 'devel/libdlmalloc')
-rw-r--r-- | devel/libdlmalloc/files/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/libdlmalloc/files/Makefile b/devel/libdlmalloc/files/Makefile index c612752a5947..5c21d801888d 100644 --- a/devel/libdlmalloc/files/Makefile +++ b/devel/libdlmalloc/files/Makefile @@ -15,7 +15,11 @@ LIBDIR=${PREFIX}/lib # for the shared lib stuff +.if ${PORTOBJFORMAT} == "elf" +VERSION=2 +.else VERSION=2.6 +.endif LIBMALLOC=libdlmalloc.a LIBSMALLOC=libdlmalloc.so.${VERSION} @@ -45,7 +49,11 @@ $(LIBMALLOC): $(OBJS) $(LIBSMALLOC): $(SOBJS) rm -f $(LIBSMALLOC) +.if ${PORTOBJFORMAT} == "elf" + ld -Bshareable -soname $(LIBSMALLOC) -o $(LIBSMALLOC) $(SOBJS) +.else ld -Bshareable -o $(LIBSMALLOC) $(SOBJS) +.endif clean: -rm -f *.o \#* *~ *.core a.out gmon.out mon.out onefile.c *.sL prof.out @@ -54,6 +62,7 @@ install: install -c -m 644 ${LIBMALLOC} $(LIBDIR) -$(RANLIB) $(LIBDIR)/${LIBMALLOC} install -c -m 555 ${LIBSMALLOC} $(LIBDIR) + ln -sf ${LIBSMALLOC} $(LIBDIR)/libdlmalloc.so $(OBJS): $(SRCS) $(SOBJS): $(SRCS) |