summaryrefslogtreecommitdiff
blob: dc7d09c2d179e742d444859e8e27544c0f4a1b1a (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
From: Elijah El Lazkani <ThyArmageddon+Gentoo@Gmail.com>
Date: Wed Jun 13 22:45:09 UTC 2012
Subject: Removing explicit LDFLAGS and CPPFLAGS

--- configure.ac
+++ configure.ac
@@ -16,42 +16,6 @@
 AC_DEFINE_UNQUOTED(UDEVIL_VERSION, "$VERSION", [udevil version])
 
 
-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'*)
-  LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
-  AC_MSG_RESULT([yes])
-  ;;
-*)                                                                              
-  AC_MSG_RESULT([no])
-  ;;
-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)]),
--- src/Makefile.am
+++ src/Makefile.am
@@ -16,8 +16,7 @@
 
 udevil_CFLAGS = \
     @GLIB_CFLAGS@ \
-    @LIBUDEV_CFLAGS@ \
-    -Werror-implicit-function-declaration
+    @LIBUDEV_CFLAGS@
 
 udevil_LDADD = \
     $(INTLLIBS) \