2000-01-25 02:35:00 +00:00
|
|
|
--- src/config/InterViews/rules.def.orig Wed Aug 25 07:47:08 1993
|
|
|
|
+++ src/config/InterViews/rules.def Sun Sep 5 16:21:37 1999
|
1999-01-26 02:40:32 +00:00
|
|
|
@@ -399,6 +399,30 @@
|
|
|
|
/*
|
|
|
|
* Make a shared library.
|
|
|
|
*/
|
|
|
|
+#if defined(FreeBSDArchitecture)
|
2000-01-25 02:35:00 +00:00
|
|
|
+#define NormalDynamicSharedLibraryTarget(libname,rev,depobjs,ldobjs) @@\
|
|
|
|
+AOUT = Concat(lib,libname.so.rev) @@\
|
|
|
|
+SHARED_CCFLAGS = SharedCCFlags @@\
|
|
|
|
+ @@\
|
|
|
|
+AllTarget(Concat(lib,libname.so.rev)) @@\
|
|
|
|
+ @@\
|
|
|
|
+Concat(lib,libname.so.rev): depobjs @@\
|
|
|
|
+ @echo "building $@" @@\
|
|
|
|
+ $(RM) $@~ @@\
|
|
|
|
+.if defined(PORTOBJFORMAT) && ($(PORTOBJFORMAT) == "elf") @@\
|
|
|
|
+ $(CC) -shared -Wl,-soname,Concat(lib,libname.so.rev) -o $@~ ldobjs @@\
|
|
|
|
+.else @@\
|
|
|
|
+ $(LD) -o $@~ -Bshareable ldobjs @@\
|
|
|
|
+.endif @@\
|
|
|
|
+ $(RM) $@ @@\
|
|
|
|
+ $(MV) $@~ $@ @@\
|
|
|
|
+.if defined(PORTOBJFORMAT) && ($(PORTOBJFORMAT) == "elf") @@\
|
|
|
|
+ $(LN) $@ Concat(lib,libname.so) @@\
|
|
|
|
+.endif @@\
|
|
|
|
+ @@\
|
|
|
|
+clean:: @@\
|
1999-01-26 02:40:32 +00:00
|
|
|
+ $(RM) Concat(lib,libname.so.rev)
|
|
|
|
+#else
|
2000-01-25 02:35:00 +00:00
|
|
|
#ifndef NormalDynamicSharedLibraryTarget
|
|
|
|
#if defined(sun) && OSMajorVersion < 5
|
|
|
|
#define NormalDynamicSharedLibraryTarget(libname,rev,depobjs,ldobjs) @@\
|
|
|
|
@@ -432,6 +456,7 @@
|
1999-01-26 02:40:32 +00:00
|
|
|
@@\
|
|
|
|
clean:: @@\
|
|
|
|
$(RM) Concat(lib,libname.so.rev)
|
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|