summaryrefslogtreecommitdiff
path: root/xc/config/cf/bsdLib.rules
diff options
context:
space:
mode:
Diffstat (limited to 'xc/config/cf/bsdLib.rules')
-rw-r--r--xc/config/cf/bsdLib.rules21
1 files changed, 19 insertions, 2 deletions
diff --git a/xc/config/cf/bsdLib.rules b/xc/config/cf/bsdLib.rules
index c4885b7de..b58aed256 100644
--- a/xc/config/cf/bsdLib.rules
+++ b/xc/config/cf/bsdLib.rules
@@ -1,10 +1,10 @@
-XCOMM $XConsortium: bsdLib.rules /main/3 1996/09/28 16:09:18 rws $
+XCOMM $Xorg: bsdLib.rules,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
-XCOMM $XFree86: xc/config/cf/bsdLib.rules,v 3.13 2000/02/13 06:15:18 dawes Exp $
+XCOMM $XFree86: xc/config/cf/bsdLib.rules,v 3.15 2001/02/16 01:26:08 dawes Exp $
/*
* NetBSD/FreeBSD shared library rules
*/
@@ -321,6 +321,23 @@ clean:: @@\
#endif /* SharedDepModuleTarget */
+#ifndef SharedDriModuleTarget
+#define SharedDriModuleTarget(name,deps,solist) @@\
+AllTarget(name) @@\
+ @@\
+name: deps @@\
+ $(RM) $@~ $@.map @@\
+ @(echo 'DRI_MODULE { global: __dri*; local: *; };' > $@.map) @@\
+ $(CC) -o $@~ -Wl,--version-script=$@.map $(SHLIBLDFLAGS) solist $(REQUIREDLIBS) BaseShLibReqs @@\
+ $(RM) $@ $@.map @@\
+ $(MV) $@~ $@ @@\
+ @@\
+clean:: @@\
+ $(RM) name @@\
+ $(RM) name.map
+
+#endif /* SharedDriModuleTarget */
+
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/