mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 03:07:02 -04:00
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
$NetBSD: patch-ac,v 1.4 2010/04/05 22:52:23 markd Exp $
|
|
|
|
--- config/site.def.NETBSD.orig 2003-10-22 18:13:39.000000000 +0000
|
|
+++ config/site.def.NETBSD
|
|
@@ -16,6 +16,9 @@
|
|
#undef TroffCmd
|
|
#define TroffCmd groff
|
|
|
|
+#undef CppCmd
|
|
+#define CppCmd cpp
|
|
+
|
|
/*
|
|
* build RPC classes -- requires iostreams & TCP sockets
|
|
*/
|
|
@@ -35,7 +38,7 @@
|
|
#define ExtraCCLdLibs -lstdc++ -lm
|
|
|
|
/* command to create shared libraries */
|
|
-#define SharedLibraryCmd(ldobjs,extra_flags) gcc -shared extra_flags -o $@ ldobjs
|
|
+#define SharedLibraryCmd(ldobjs,extra_flags) ${CXX} ${CCLDFLAGS} -shared extra_flags -o $@ ldobjs
|
|
|
|
/*
|
|
* Install a shared library on NetBSD.
|
|
@@ -46,15 +46,15 @@
|
|
#ifndef InstallDynamicSharedLibrary
|
|
#define InstallDynamicSharedLibrary(libname,rev,dest) @@\
|
|
install:: Concat(lib,libname.so.rev) @@\
|
|
- MakeDir(dest) @@\
|
|
- $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) dest @@\
|
|
- -@$(RM) dest/Concat(lib,libname.so) @@\
|
|
- -@(cd dest;$(LN) Concat(lib,libname.so.rev) \ @@\
|
|
+ MakeDir($(DESTDIR)dest) @@\
|
|
+ $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\
|
|
+ -@$(RM) $(DESTDIR)dest/Concat(lib,libname.so) @@\
|
|
+ -@(cd $(DESTDIR)dest;$(LN) Concat(lib,libname.so.rev) \ @@\
|
|
Concat(lib,libname.so)) @@\
|
|
@@\
|
|
uninstall:: @@\
|
|
- $(RM) dest/Concat(lib,libname.so.rev) @@\
|
|
- $(RM) dest/Concat(lib,libname.so)
|
|
+ $(RM) $(DESTDIR)dest/Concat(lib,libname.so.rev) @@\
|
|
+ $(RM) $(DESTDIR)dest/Concat(lib,libname.so)
|
|
#endif
|
|
|
|
#ifndef ImakeFlags
|