Linking updates for MinGW

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20819 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2005-03-01 05:00:35 +00:00
parent bc5ec4d07e
commit 7e5754884d
3 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2005-03-01 02:50 Nicola Pero <n.pero@mi.flashnet.it>
* Source/Makefile.preamble (ADDITIONAL_LIB_DIRS): When building a
shared library, depend on all TARGET_SYSTEM_LIBS, not just
CONFIG_SYSTEM_LIBS.
* Headers/Additions/GNUstepBase/GSObjCRuntime.h: Do not use
__declspec(dllexport) on mingw. Use extern instead.
2005-02-28 17:45 Richard Frith-Macdonald <rfm@gnu.org>
* NSCharacterSets/GNUmakefile: Use GNUSTEP_OBJ_DIR_NAME to run

View file

@ -41,8 +41,17 @@ extern "C" {
#ifdef GNUSTEP_WITH_DLL
#if BUILD_libgnustep_base_DLL
#
# if defined(__MINGW32__)
/* On Mingw, the compiler will export all symbols automatically, so
* __declspec(dllexport) is not needed.
*/
# define GS_EXPORT extern
# define GS_DECLARE
# else
# define GS_EXPORT __declspec(dllexport)
# define GS_DECLARE __declspec(dllexport)
# endif
#else
# define GS_EXPORT extern __declspec(dllimport)
# define GS_DECLARE __declspec(dllimport)

View file

@ -78,8 +78,8 @@ ifeq ($(GNUSTEP_TARGET_OS),cygwin)
libgnustep-base_LIBRARIES_DEPEND_UPON += -lobjc
endif
ifeq ($(shared),yes)
libgnustep-base_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
libgnustep-baseadd_LIBRARIES_DEPEND_UPON += $(CONFIG_SYSTEM_LIBS)
libgnustep-base_LIBRARIES_DEPEND_UPON += $(TARGET_SYSTEM_LIBS)
libgnustep-baseadd_LIBRARIES_DEPEND_UPON += $(TARGET_SYSTEM_LIBS)
endif
#