diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-14 10:45:41 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-14 10:48:26 +0000 |
commit | 91819fa0e61ee0b41f2342fd5149b385146bb954 (patch) | |
tree | 9f56cf2c9602703922abed90c218475e710475ab | |
parent | 85db2a664c820e01a02ddc3b33b3da26fe05dc5b (diff) | |
download | febootstrap-91819fa0e61ee0b41f2342fd5149b385146bb954.tar.gz febootstrap-91819fa0e61ee0b41f2342fd5149b385146bb954.tar.xz febootstrap-91819fa0e61ee0b41f2342fd5149b385146bb954.zip |
Link init with '-static' instead of '-all-static'.
Latest gcc (4.6.0) does not recognize the -all-static
option; see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46410
Using -static still results in a static init binary:
$ file helper/init
helper/init: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, stripped
$ ldd helper/init
not a dynamic executable
(cherry picked from commit 42a6e60307b8116dd888e9dae4960f12d895f73f)
-rw-r--r-- | helper/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/Makefile.am b/helper/Makefile.am index c747269..01a6af1 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -40,7 +40,7 @@ febootstrap_supermin_helper_LDADD = \ noinst_PROGRAMS = init init_SOURCES = init.c init_CFLAGS = -static -init_LDFLAGS = -all-static +init_LDFLAGS = -static # http://www.doof.me.uk/2010/05/07/cute-objcopy-hack/ ELF_DEFAULT_ARCH = $(shell $(srcdir)/elf-default-arch | gawk '{ print $$1 }') |