This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Xrandr
- Subject: RE: Xrandr
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- Date: Tue, 31 Jul 2001 18:38:08 +0200 (MEST)
- Cc: cygx <cygwin-xfree at cygwin dot com>
On Tue, 31 Jul 2001, Harold Hunt wrote:
> Have you tested that? I would love to have something like that, because we
> currently have to have a development member that remembers to occasionally
> chant the proper incantations over the *-def.cpp files. If you could
> resubmit the above as a patch I'd appreciate it, and I'll test it as well.
>
Tested on Xrandr. If the nm command is correct, then it works. The libs
have all build with the modified Makefile.
This patch will make a lot of file in the cvs tree obsolete
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org
phone: +49 3725 3498080 mobile: +49 172 7854017
Index: cygwin.rules
===================================================================
RCS file: /cvs/xc/config/cf/cygwin.rules,v
retrieving revision 3.12
diff -U3 -r3.12 cygwin.rules
--- cygwin.rules 2001/06/25 11:02:26 3.12
+++ cygwin.rules 2001/07/31 09:14:52
@@ -69,6 +70,15 @@
# endif
# endif /* UseInstalled */
+/*
+ * SharedLibraryExportDef
+ * Generates the libname-def.cpp
+ */
+
+#define SharedLibraryExportDef(libname,solist) @@\
+libname-def.cpp: solist @@\
+ ( echo "LIBRARY libname" ; echo "VERSION LIBRARY_VERSION" ; echo "EXPORTS"; $(NM) --demangle --defined-only solist | sed -n 's/^.* T //p' ) > libname-def.cpp
+
/*
* SharedDepLibraryTarget
@@ -77,6 +87,7 @@
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\
AllTarget(Concat3(lib,libname,.dll)) @@\
@@\
+SharedLibraryExportDef(libname,solist) @@\
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES)) @@\
@@\
@@\
@@ -151,7 +162,6 @@
export IMAGE_BASE=`cat $(BASE_COUNTER)`; \ @@\
printf 0x%x `expr \`printf %u $$IMAGE_BASE\` + $$IMAGE_LENGTH` > $(BASE_COUNTER)
-
/*
* SharedLibraryTarget
*/
@@ -159,6 +169,7 @@
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat3(lib,libname,.dll)) @@\
@@\
+SharedLibraryExportDef(libname,solist) @@\
CppFileTarget(libname.def,libname-def.cpp,-DLIBRARY_VERSION=rev,$(ICONFIGFILES)) @@\
@@\
@@\
Index: cygwin.tmpl
===================================================================
RCS file: /cvs/xc/config/cf/cygwin.tmpl,v
retrieving revision 3.6
diff -U3 -r3.6 cygwin.tmpl
--- cygwin.tmpl 2001/06/25 08:12:30 3.6
+++ cygwin.tmpl 2001/07/31 09:14:52
@@ -58,6 +59,10 @@
#define ObjdumpCmd objdump
#endif
+#ifndef NmCmd
+#define NmCmd nm
+#endif
+
#ifndef DllBaseCounter
# if CrossCompiling
# define DllBaseCounter ~/DLL_BASE_COUNTER /* So you don't have to be root */
@@ -74,4 +79,5 @@
DLLTOOL = DlltoolCmd
OBJDUMP = ObjdumpCmd
BASE_COUNTER = DllBaseCounter
+ NM = NmCmd