summaryrefslogtreecommitdiff
path: root/build-dll
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-07-22 08:38:06 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-07-22 08:38:06 +0000
commitf07b4a876ea81c94fac4967a3b98bd97c38faf94 (patch)
treee767ea151fc98f08de02d01f723124b1e592bea1 /build-dll
parentfec9828ac62918374fb8aa94e15a9bdf554e269e (diff)
downloadglib-f07b4a876ea81c94fac4967a3b98bd97c38faf94.tar.gz
Fix resource handling, the resource file got left out from the DLL after
2000-07-22 Tor Lillqvist <tml@iki.fi> * build-dll: Fix resource handling, the resource file got left out from the DLL after all... Remove the WIN32APIHEADERS, not needed with current windres. * glib.def: Add new functions.
Diffstat (limited to 'build-dll')
-rw-r--r--build-dll12
1 files changed, 4 insertions, 8 deletions
diff --git a/build-dll b/build-dll
index 0d1f6f064..61efb013d 100644
--- a/build-dll
+++ b/build-dll
@@ -3,8 +3,8 @@
# Temporary hack until building dlls is easier with gcc -mno-cygwin
# ("mingw32").
-# This is usable with cygwin b20.1 and gcc-2.95.2 as distributed by
-# Mumit Khan. For other combinations, no idea.
+# This is usable with cygwin 1.1.x and gcc-2.95.2 for mingw as
+# distributed by Mumit Khan. For other combinations, no idea.
GCC="gcc"
DLLTOOL="dlltool"
@@ -31,13 +31,9 @@ done
# Check if we have a resource file for this DLL.
resfile=""
if [ -f $library.rc ]; then
- # Kludge to get the path to the win32 headers. Should work for both
- # gcc running on cygwin, and bare mingw gcc, even if the make is
- # running on cygwin (whew).
- WIN32APIHEADERS=`echo "\#include <winver.h>" | $GCC -M -E - | tail -1 | sed -e 's![\\/]winver.h!!' | tr -d '\015'`
-
resfile=$library-win32res.o
objs="$objs $resfile"
+ ldargs="$ldargs $resfile"
# Check if we have a build number stamp file.
if [ -f $library-build.stamp ]; then
@@ -51,7 +47,7 @@ if [ -f $library.rc ]; then
fi
m4 -DBUILDNUMBER=$buildnumber <$library.rc >$library-win32res.rc
- windres --include-dir $WIN32APIHEADERS $library-win32res.rc $library-win32res.o
+ windres $library-win32res.rc $library-win32res.o
rm $library-win32res.rc
fi