2007-04-17 00:35:48 +02:00
|
|
|
Index: src/krb5-config.in
|
|
|
|
===================================================================
|
|
|
|
--- src/krb5-config.in.orig
|
|
|
|
+++ src/krb5-config.in
|
2009-07-08 19:41:43 +02:00
|
|
|
@@ -188,6 +188,8 @@ if test -n "$do_libs"; then
|
2007-04-17 00:35:48 +02:00
|
|
|
-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
|
2010-03-23 12:40:55 +01:00
|
|
|
@@ -419,7 +419,8 @@ mips-*-netbsd*)
|
2007-04-17 00:35:48 +02:00
|
|
|
PROFFLAGS=-pg
|
|
|
|
RPATH_FLAG='-Wl,-rpath -Wl,'
|
2009-07-08 19:41:43 +02:00
|
|
|
PROG_RPATH_FLAGS='$(RPATH_FLAG)$(PROG_RPATH)'
|
|
|
|
- CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(PROG_RPATH_FLAGS) $(CFLAGS) $(LDFLAGS)'
|
|
|
|
+ CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(PROG_RPATH_FLAGS) $(CFLAGS) -pie $(LDFLAGS)'
|
|
|
|
+ INSTALL_SHLIB='${INSTALL} -m755'
|
2007-04-17 00:35:48 +02:00
|
|
|
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'
|
2009-07-08 19:41:43 +02:00
|
|
|
CXX_LINK_SHARED='$(CXX) $(PROG_LIBPATH) $(PROG_RPATH_FLAGS) $(CXXFLAGS) $(LDFLAGS)'
|
|
|
|
CXX_LINK_STATIC='$(CXX) $(PROG_LIBPATH) $(CXXFLAGS) $(LDFLAGS)'
|