OSDN Git Service

PR libfortran/40549
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Aug 2009 11:02:08 +0000 (11:02 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Aug 2009 11:02:08 +0000 (11:02 +0000)
* Makefile.in (LTLDFLAGS): Add -no-undefined.
* Makefile.am: Regenerate.
* libgfortran.h: Remove unused block of code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150590 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/libgfortran.h

index 846bdfb..fb65184 100644 (file)
@@ -1,3 +1,10 @@
+2009-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+       PR libfortran/40549
+       * Makefile.in (LTLDFLAGS): Add -no-undefined.
+       * Makefile.am: Regenerate.
+       * libgfortran.h: Remove unused block of code.
+
 2009-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libfortran/40853
index aaecdb4..26565a2 100644 (file)
@@ -13,7 +13,8 @@ else
 version_arg =
 endif
 
-LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
+LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) \
+           -no-undefined
 
 toolexeclib_LTLIBRARIES = libgfortran.la
 libgfortran_la_LINK = $(LINK)
index 7ea32c6..b724ee3 100644 (file)
@@ -957,7 +957,9 @@ ACLOCAL_AMFLAGS = -I .. -I ../config
 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
 @LIBGFOR_USE_SYMVER_FALSE@version_arg = 
 @LIBGFOR_USE_SYMVER_TRUE@version_arg = -Wl,--version-script=$(srcdir)/gfortran.map
-LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
+LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) \
+           -no-undefined
+
 toolexeclib_LTLIBRARIES = libgfortran.la
 libgfortran_la_LINK = $(LINK)
 libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) -lm $(extra_ldflags_libgfortran) $(version_arg)
index a2e2002..439c791 100644 (file)
@@ -177,13 +177,6 @@ extern int __mingw_snprintf (char *, size_t, const char *, ...)
 # define iexport1(x,y)         iexport2(x,y)
 # define iexport2(x,y) \
        extern __typeof(x) PREFIX(x) __attribute__((__alias__(#y)))
-/* ??? We're not currently building a dll, and it's wrong to add dllexport
-   to objects going into a static library archive.  */
-#elif 0 && defined(HAVE_ATTRIBUTE_DLLEXPORT)
-# define export_proto_np(x)    extern __typeof(x) x __attribute__((dllexport))
-# define export_proto(x)    sym_rename(x, PREFIX(x)) __attribute__((dllexport))
-# define iexport_proto(x)      export_proto(x)
-# define iexport(x)            extern char swallow_semicolon
 #else
 # define export_proto(x)       sym_rename(x, PREFIX(x))
 # define export_proto_np(x)    extern char swallow_semicolon