Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller
openntpd
openntpd-3.9p1_pie_configure.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openntpd-3.9p1_pie_configure.patch of Package openntpd
Index: configure.ac =================================================================== --- configure.ac.orig +++ configure.ac @@ -578,6 +578,35 @@ AC_ARG_ENABLE(strip, ) AC_SUBST(STRIP_OPT) +want_pie="no" +AC_ARG_ENABLE(pie, + [ --enable-pie Compile with as PIE.], + [ + AC_MSG_CHECKING([if we can use PIE]) + if test "x$enableval" = "xyes" ; then + want_pie="yes" + # try to compile something with pie + old_cflags=$CFLAGS + # normally we need -Werror here + # but atm HAVE_DECL_ASPRINTF is defined twice + # and the check breaks with -Werror + CFLAGS="-pie -DPIC -fPIC -Werror" + AC_TRY_LINK([ + ],, [ + LIBS="$LIBS -pie" + # enforce -fPIC so all objects are compiled with it + CFLAGS="$old_cflags -fPIC -DPIC" + want_pie=yes + ], [ + # restore old CFLAGS + CFLAGS="$old_cflags" + want_pie=no + ]) + fi + AC_MSG_RESULT($want_pie) + ] +) + AC_ARG_WITH(builtin-arc4random, [ --with-builtin-arc4random Use builtin arc4random rather than OpenSSL's], [ builtin_arc4random=$withval ]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor