mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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.
This commit is contained in:
10
build-dll
10
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
|
||||
|
Reference in New Issue
Block a user