0001-build-don-t-use-gc-sections.patch 710 B

12345678910111213141516171819202122232425262728293031
  1. From 971a09345f108189ed899b236784a5440e43c8b6 Mon Sep 17 00:00:00 2001
  2. From: Daniel Mierswa <impulze@impulze.org>
  3. Date: Sun, 31 Jul 2011 23:51:49 +0000
  4. Subject: [PATCH 1/2] build: don't use --gc-sections
  5. somehow won't work with the wrt toolchain
  6. ---
  7. Makefile.am | 5 +----
  8. 1 files changed, 1 insertions(+), 4 deletions(-)
  9. diff --git a/Makefile.am b/Makefile.am
  10. index a0c007a..3d8ce92 100644
  11. --- a/Makefile.am
  12. +++ b/Makefile.am
  13. @@ -18,12 +18,9 @@ AM_CPPFLAGS = \
  14. -DLIBEXECDIR=\""$(libexecdir)"\"
  15. AM_CFLAGS = \
  16. - -fvisibility=hidden \
  17. - -ffunction-sections \
  18. - -fdata-sections
  19. + -fvisibility=hidden
  20. AM_LDFLAGS = \
  21. - -Wl,--gc-sections \
  22. -Wl,--as-needed
  23. DISTCHECK_CONFIGURE_FLAGS = \
  24. --
  25. 1.7.6