[gjs] [build] Use -no-undefined
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] [build] Use -no-undefined
- Date: Tue, 8 Jun 2010 21:01:20 +0000 (UTC)
commit 4490bd94399a8d262c033645998c2d1c1df4f1fa
Author: Johan Dahlin <johan gnome org>
Date: Tue Jun 8 17:59:34 2010 -0300
[build] Use -no-undefined
Fixes cygwin build of gjs.
Patch by yselkowitz users sourceforge net
Makefile-gi.am | 2 +-
Makefile-gjs-dbus.am | 2 ++
Makefile-modules.am | 2 +-
Makefile.am | 1 +
4 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Makefile-gi.am b/Makefile-gi.am
index c6f9de6..08a6c08 100644
--- a/Makefile-gi.am
+++ b/Makefile-gi.am
@@ -9,7 +9,7 @@ libgjs_gi_la_LIBADD = \
libgjs.la \
$(GJS_GI_LIBS)
libgjs_gi_la_LDFLAGS = \
- -export-symbols-regex "^[^_].*" -version-info 0:0:0 -rdynamic
+ -export-symbols-regex "^[^_].*" -version-info 0:0:0 -rdynamic -no-undefined
nobase_gjsgiinclude_HEADERS = \
gi/arg.h \
diff --git a/Makefile-gjs-dbus.am b/Makefile-gjs-dbus.am
index 27fe4be..6906941 100644
--- a/Makefile-gjs-dbus.am
+++ b/Makefile-gjs-dbus.am
@@ -18,6 +18,8 @@ libgjs_dbus_la_CPPFLAGS = \
libgjs_dbus_la_CFLAGS = \
$(AM_CFLAGS) \
$(GJS_DBUS_CFLAGS)
+libgjs_dbus_la_LDFLAGS = \
+ -no-undefined
libgjs_dbus_la_LIBADD = \
libgjs.la \
$(GJS_DBUS_LIBS)
diff --git a/Makefile-modules.am b/Makefile-modules.am
index af04ccf..17ae1ca 100644
--- a/Makefile-modules.am
+++ b/Makefile-modules.am
@@ -21,7 +21,7 @@ JS_NATIVE_MODULE_LIBADD = \
libgjs.la \
$(GJS_LIBS)
JS_NATIVE_MODULE_LDFLAGS = \
- -module -avoid-version -Wl,-z,defs -rdynamic
+ -module -avoid-version -no-undefined -rdynamic
gi_la_CFLAGS = \
$(JS_NATIVE_MODULE_CFLAGS) \
diff --git a/Makefile.am b/Makefile.am
index f0f0256..11fa15e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,6 +60,7 @@ libgjs_la_CFLAGS = \
$(AM_CFLAGS)
libgjs_la_LDFLAGS = \
-export-symbols-regex "^[^_]" -version-info 0:0:0 \
+ -no-undefined \
-R $(FIREFOX_JS_LIBDIR) -rdynamic
libgjs_la_LIBADD = \
$(GJS_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]