In krb5-config resolve rpath_flag at build-time
This commit is contained in:

committed by
Viktor Dukhovni

parent
0259f1c449
commit
31896397d7
@@ -40,7 +40,7 @@ subst = sed -e "s!@PACKAGE\@!$(PACKAGE)!g" \
|
||||
-e "s!@LIBS\@!$(LIBS)!g"
|
||||
|
||||
krb5-config: krb5-config.in
|
||||
$(subst) $(srcdir)/krb5-config.in > $@.new
|
||||
$(subst) $(srcdir)/krb5-config.in | /bin/sh > $@.new
|
||||
mv $@.new $@
|
||||
chmod +x $@
|
||||
|
||||
|
@@ -1,4 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat <<'EOM'
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2000 - 2008 Kungliga Tekniska Högskolan
|
||||
# (Royal Institute of Technology, Stockholm, Sweden).
|
||||
@@ -181,6 +184,8 @@ fi
|
||||
# option... And MIT's krb5-config does include rpath flags.
|
||||
#
|
||||
# Compatibility with MIT is the winning consideration for now.
|
||||
EOM
|
||||
|
||||
case "@CANONICAL_HOST@" in
|
||||
alpha*-dec-osf*)
|
||||
rpath_flag='-Wl,-rpath -Wl,';;
|
||||
@@ -198,6 +203,10 @@ alpha*-dec-osf*)
|
||||
rpath_flag=;;
|
||||
esac
|
||||
|
||||
echo "rpath_flag='$rpath_flag'"
|
||||
|
||||
cat <<'EOM'
|
||||
|
||||
if test "$do_libs" = "yes"; then
|
||||
deplibs=""
|
||||
if test "$lib_gssapi" = yes; then
|
||||
@@ -254,3 +263,4 @@ if test "$do_cflags" = "yes"; then
|
||||
fi
|
||||
|
||||
exit 0
|
||||
EOM
|
||||
|
Reference in New Issue
Block a user