summaryrefslogtreecommitdiff
blob: 166a4357e9f3167bb569016b2ed6377005a69de6 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Julian Ospald <hasufell@gentoo.org>
Date: Sun Oct 21 19:33:04 UTC 2012
Subject: build system

	respect flags where possible

--- configure.ac
+++ configure.ac
@@ -18,26 +18,6 @@
 
 
 dnl linker optimizations
-AC_MSG_CHECKING([whether $LD accepts --as-needed])
-case `$LD --as-needed -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
-  LDFLAGS="$LDFLAGS -Wl,--as-needed"
-  AC_MSG_RESULT([yes])
-  ;;
-*)
-  AC_MSG_RESULT([no])
-  ;;
-esac
-AC_MSG_CHECKING([whether $LD accepts -O1])
-case `$LD -O1 -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
-  LDFLAGS="$LDFLAGS -Wl,-O1"
-  AC_MSG_RESULT([yes])
-  ;;
-*)
-  AC_MSG_RESULT([no])
-  ;;
-esac
 AC_MSG_CHECKING([whether $LD accepts -Bsymbolic-functions])
 case `$LD -Bsymbolic-functions -v 2>&1 </dev/null` in
 *GNU* | *'with BFD'*)
@@ -49,10 +29,6 @@
   ;;
 esac
 
-dnl advanced compiler tweaking
-CPPFLAGS="$CPPFLAGS -fstrict-aliasing -fmessage-length=0"
-
-
 # program paths
 AC_ARG_WITH(mount-prog, 
 	AC_HELP_STRING([--with-mount-prog=PATH], [Path to mount program (default: /bin/mount)]),