Skip to content

Commit 9b34596

Browse files
committed
No need for dllexport when building a static library.
1 parent da28821 commit 9b34596

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2003-05-12 Bruno Haible <bruno@clisp.org>
2+
3+
* lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
4+
CFLAGS to PICFLAGS.
5+
16
2003-05-09 Bruno Haible <bruno@clisp.org>
27

38
* srclib/error.c: Update from gnulib with modifications.

lib/Makefile.msvc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ PICFLAGS =
5858
!else
5959
# "-GD" (msvc5) optimizes for DLL.
6060
# mscv4 doesn't know about this flag and ignores it.
61-
PICFLAGS = -GD
61+
# -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
62+
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
63+
PICFLAGS = -GD -DBUILDING_LIBICONV -DBUILDING_DLL
6264
!endif
6365

6466
!if $(DEBUG)
@@ -68,9 +70,7 @@ OPTIMFLAGS = -Od -Z7
6870
OPTIMFLAGS = -D_NDEBUG -O1
6971
!endif
7072

71-
# -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
72-
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
73-
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBICONV -DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate
73+
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate
7474

7575
INCLUDES = -I. -I..\include
7676

0 commit comments

Comments
 (0)