Permalink
Browse files

glib2 -nostdlib

  • Loading branch information...
postwait committed Apr 2, 2013
1 parent 7fb5923 commit 16fdea8b57a52d74876606d6b118b50753603395
Showing with 6 additions and 0 deletions.
  1. +6 −0 build/glib/build.sh
View
@@ -46,6 +46,9 @@ configure32() {
LIBFFI_LIBS=-lffi
export LIBFFI_LIBS
configure32_orig
+
+ logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
+ logerr "libtool patch failed"
# one file here requires c99 compilation and most others prohibit it
# it is a test, so no runtime issues will be present
pushd glib/tests > /dev/null
@@ -59,6 +62,9 @@ configure64() {
LIBFFI_LIBS=-lffi
export LIBFFI_LIBS
configure64_orig
+
+ logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
+ logerr "libtool patch failed"
# one file here requires c99 compilation and most others prohibit it
# it is a test, so no runtime issues will be present
pushd glib/tests > /dev/null

0 comments on commit 16fdea8

Please sign in to comment.