summaryrefslogtreecommitdiff
path: root/package/system/udev/patches/0001-build-don-t-use-gc-sections.patch
blob: f01a5ae1afbb5669006e6993cd499ce6d53b20dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 971a09345f108189ed899b236784a5440e43c8b6 Mon Sep 17 00:00:00 2001
From: Daniel Mierswa <impulze@impulze.org>
Date: Sun, 31 Jul 2011 23:51:49 +0000
Subject: [PATCH 1/2] build: don't use --gc-sections

somehow won't work with the wrt toolchain
---
 Makefile.am |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index a0c007a..3d8ce92 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,12 +18,9 @@ AM_CPPFLAGS = \
 	-DLIBEXECDIR=\""$(libexecdir)"\"
 
 AM_CFLAGS = \
-	-fvisibility=hidden \
-	-ffunction-sections \
-	-fdata-sections
+	-fvisibility=hidden
 
 AM_LDFLAGS = \
-	-Wl,--gc-sections \
 	-Wl,--as-needed
 
 DISTCHECK_CONFIGURE_FLAGS = \
-- 
1.7.6