28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
|
Index: src/krb5-config.in
|
||
|
===================================================================
|
||
|
--- src/krb5-config.in.orig
|
||
|
+++ src/krb5-config.in
|
||
|
@@ -186,6 +186,8 @@ if test -n "$do_libs"; then
|
||
|
-e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
|
||
|
-e 's#\$(CFLAGS)#'"$CFLAGS"'#'`
|
||
|
|
||
|
+ lib_flags=`echo $lib_flags | sed -e "s#-fPIE##" -e "s#-pie##"`
|
||
|
+
|
||
|
if test $library = 'kdb'; then
|
||
|
lib_flags="$lib_flags -lkdb5 $KDB5_DB_LIB"
|
||
|
library=krb5
|
||
|
Index: src/config/shlib.conf
|
||
|
===================================================================
|
||
|
--- src/config/shlib.conf.orig
|
||
|
+++ src/config/shlib.conf
|
||
|
@@ -378,7 +378,8 @@ mips-*-netbsd*)
|
||
|
SHLIB_EXPFLAGS='-Wl,-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
|
||
|
PROFFLAGS=-pg
|
||
|
RPATH_FLAG='-Wl,-rpath -Wl,'
|
||
|
- CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(LDFLAGS)'
|
||
|
+ CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) -pie $(LDFLAGS)'
|
||
|
+ INSTALL_SHLIB='${INSTALL} -m755'
|
||
|
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'
|
||
|
RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH; '
|
||
|
|