Skip to content

Commit

Permalink
Bugzilla Bug 337887: use the -mnop-fun-dllimport flag so that we can use
Browse files Browse the repository at this point in the history
a pointer to a function declared with the dllimport attribute as a constant
address.  We need to use such function pointers to initialize a const
structure in nss/lib/ssl/sslsock.c.  The patch is contributed by Chris
Seawood <cls@seawood.org>.  r=wtc.
  • Loading branch information
wtchang%redhat.com committed May 17, 2006
1 parent 8a41c5b commit 20cfb05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion security/coreconf/WIN32.mk
Expand Up @@ -89,7 +89,10 @@ endif
DLL_SUFFIX = dll

ifdef NS_USE_GCC
OS_CFLAGS += -mno-cygwin -mms-bitfields
# The -mnop-fun-dllimport flag allows us to avoid a drawback of
# the dllimport attribute that a pointer to a function marked as
# dllimport cannot be used as as a constant address.
OS_CFLAGS += -mno-cygwin -mms-bitfields -mnop-fun-dllimport
_GEN_IMPORT_LIB=-Wl,--out-implib,$(IMPORT_LIBRARY)
DLLFLAGS += -mno-cygwin -o $@ -shared -Wl,--export-all-symbols $(if $(IMPORT_LIBRARY),$(_GEN_IMPORT_LIB))
ifdef BUILD_OPT
Expand Down

0 comments on commit 20cfb05

Please sign in to comment.