This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0 of 4 v2] No static link on Darwin


Am 28.06.2011 um 23:56 schrieb Yann E. MORIN:

> Hello All!
> 
> This patch series tries to fix the various static linking issues
> seen on Darwin /MacOS-X.
> 
> First patch is mostly cosmetics, but the result is used by the second
> patch.
> 
> Second patch disables all static linking options in the menuconfig
> if the host can't link statically. Applies to hosts where a trivial
> static-link test fails. Unconditionnaly applies to Darwin.
> 
> Third patch paves the way for fourth patch.
> 
> Fourth patch removes the check for static libs if host can't
> link statically (as determined in patch 2).

Looks good to me.
My config/configure.in looks reasonable
(nothing is equivalent to 'default n'?):

# Generated file, do not edit
# Default values as found by ./configure

config CONFIGURE_static_link_ok
    bool

config CONFIGURE_has_static_libstdcxx
    bool

config CONFIGURE_has_expat
    bool
    default y

config CONFIGURE_has_static_expat
    bool
-----------------


When I manually edit the configure.in to allow static
libstdc++ and static linking the diff of the .config files looks like this.
To me it looks OK.

--- .config	2011-07-03 10:45:06.000000000 +0200
+++ config-static	2011-07-03 10:44:43.000000000 +0200
@@ -1,8 +1,10 @@
 #
 # Automatically generated make config: don't edit
 # The crosstool-NG configuration menu
-# Sun Jul  3 10:45:06 2011
+# Sun Jul  3 10:44:15 2011
 #
+CT_CONFIGURE_static_link_ok=y
+CT_CONFIGURE_has_static_libstdcxx=y
 CT_CONFIGURE_has_expat=y
 CT_MODULES=y
 
@@ -149,6 +151,8 @@
 CT_USE_SYSROOT=y
 CT_SYSROOT_NAME="sysroot"
 CT_SYSROOT_DIR_PREFIX=""
+CT_STATIC_TOOLCHAIN_POSSIBLE=y
+# CT_STATIC_TOOLCHAIN is not set
 CT_TOOLCHAIN_PKGVERSION="test"
 CT_TOOLCHAIN_BUGURL=""
 
@@ -310,6 +314,7 @@
 CT_CC_ENABLE_CXX_FLAGS=""
 CT_CC_CORE_EXTRA_CONFIG_ARRAY=""
 CT_CC_EXTRA_CONFIG_ARRAY=""
+CT_CC_STATIC_LIBSTDCXX=y
 
 #
 # Optimisation features
----------------------


Regards
Titus


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]