summaryrefslogtreecommitdiff
path: root/build-dll
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-07-31 21:45:21 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-07-31 21:45:21 +0000
commit1146c6fbb37bb85f8c49f572cfae9469339f89ff (patch)
treedab4325dc6082366c991649a822998a36c0e0da2 /build-dll
parent87c7aeb93bd654776f59805a342ad913031034f3 (diff)
downloadglib-1146c6fbb37bb85f8c49f572cfae9469339f89ff.tar.gz
New functions.
* gstrfuncs.c (g_strccpy, g_strecpy): New functions. * glib.h: Declare and document them. Define the deprecated g_strescape as a macro that calls g_strecpy. * tests/strfunc-test.c (main): Test them. * makefile.{cygwin,msc}.in * tests/makefile.{cygwin,msc}.in: Remove gstack and its test program. * glib.def: Additions and removals. * README.win32: Improve gcc build instructions. * build-dll: Also build import library for MSVC.
Diffstat (limited to 'build-dll')
-rw-r--r--build-dll10
1 files changed, 9 insertions, 1 deletions
diff --git a/build-dll b/build-dll
index 958b45f30..ef3aa73b5 100644
--- a/build-dll
+++ b/build-dll
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Temporary hack until building dlls or executables with exported
# entry points is easier with gcc -mno-cygwin ("mingw32").
@@ -36,4 +36,12 @@ $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --outp
$GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs &&
$DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs
+# Finally, also build import libraries for the Microsoft linker. You
+# will either need to have some decent version of MSVC, or get lib.exe
+# (and link.exe) from the (freely downloadable) Microsoft Platform SDK.
+
+if type -p lib.exe && [ -n "$def" -a "$def" != '-' ]; then
+ lib -name:$libname.dll -def:$def -out:$libname.lib
+fi
+
rm $library.base $library.exp 2>/dev/null