From: Bruno Haible Date: Wed, 25 Oct 2006 11:50:34 +0000 (+0000) Subject: Define DLL_VARIABLE to empty while compiling the relocwrapper. X-Git-Tag: 0.16.x-branchpoint~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f02bac31faa8c55136251a90f16993a1ba7d460;p=thirdparty%2Fgettext.git Define DLL_VARIABLE to empty while compiling the relocwrapper. --- diff --git a/ChangeLog b/ChangeLog index f50ab3548..d7595f45d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * gettext-0.16 released. +2006-10-25 Bruno Haible + + * build-aux/install-reloc: Define IN_RELOCWRAPPER for the compilation. + 2006-10-24 Bruno Haible * version.sh: Bump version number to 0.16. diff --git a/build-aux/install-reloc b/build-aux/install-reloc index 4dc5ffe78..851f11f42 100755 --- a/build-aux/install-reloc +++ b/build-aux/install-reloc @@ -1,6 +1,6 @@ #!/bin/sh # install-reloc - install a program including a relocating wrapper -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. # Written by Bruno Haible , 2003. # # This program is free software; you can redistribute it and/or modify @@ -119,7 +119,7 @@ test -n "$libdirs" || exit 0 # Compile wrapper. installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'` -func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" -D"EXEEXT=\"$exeext\"" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/progreloc.c "$srcdir"/xreadlink.c "$srcdir"/readlink.c "$srcdir"/canonicalize.c "$srcdir"/allocsa.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o "$destprog.wrapper$exeext" || exit $? +func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DIN_RELOCWRAPPER -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" -D"EXEEXT=\"$exeext\"" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/progreloc.c "$srcdir"/xreadlink.c "$srcdir"/readlink.c "$srcdir"/canonicalize.c "$srcdir"/allocsa.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o "$destprog.wrapper$exeext" || exit $? # Rename $destprog.wrapper -> $destprog -> $destprog.bin. ln -f "$destprog$exeext" "$destprog.bin$exeext" \ diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog index a9f72779d..1e4369271 100644 --- a/gettext-runtime/ChangeLog +++ b/gettext-runtime/ChangeLog @@ -2,6 +2,11 @@ * gettext-0.16 released. +2006-10-25 Bruno Haible + + * configure.ac (DLL_VARIABLE): Define to empty if IN_RELOCWRAPPER is + defined. + 2006-10-14 Bruno Haible * COPYING: Clarify copyright of the programs. diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index 03f642635..dd28a427b 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -83,7 +83,7 @@ AC_CHECK_FUNCS([setlocale]) dnl Put some default definitions into config.h. AH_BOTTOM([ /* On Windows, variables that may be in a DLL must be marked specially. */ -#if (defined _MSC_VER && defined _DLL) +#if (defined _MSC_VER && defined _DLL) && !defined IN_RELOCWRAPPER # define DLL_VARIABLE __declspec (dllimport) #else # define DLL_VARIABLE diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index c3d5900eb..94bc64b81 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -2,6 +2,11 @@ * gettext-0.16 released. +2006-10-25 Bruno Haible + + * configure.ac (DLL_VARIABLE): Define to empty if IN_RELOCWRAPPER is + defined. + 2006-10-20 Bruno Haible * Makefile.am (ACLOCAL_AMFLAGS): Add -I libgettextpo/gnulib-m4. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 88f49da11..d517e15e5 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -216,7 +216,7 @@ AH_BOTTOM([ #define PAGE_WIDTH 79 /* On Windows, variables that may be in a DLL must be marked specially. */ -#if (defined _MSC_VER && defined _DLL) || defined WOE32DLL +#if ((defined _MSC_VER && defined _DLL) || defined WOE32DLL) && !defined IN_RELOCWRAPPER # define DLL_VARIABLE __declspec (dllimport) #else # define DLL_VARIABLE