You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/udevil/files/udevil-0.4.3-flags.patch

47 lines
1.0 KiB

From: Julian Ospald <hasufell@gentoo.org>
Date: Sun Oct 21 19:33:04 UTC 2012
Subject: build system
respect flags where possible
--- a/configure.ac
+++ b/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)]),