SHA256
1
0
forked from pool/krb5
krb5/krb5-1.4-compile_pie.dif

311 lines
7.1 KiB
Plaintext

--- src/appl/bsd/Makefile.in
+++ src/appl/bsd/Makefile.in 2005/06/17 14:00:37
@@ -15,6 +15,9 @@
V4RCPO=@V4RCPO@
KRSHDLIBS=@KRSHDLIBS@
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
SRCS= $(srcdir)/krcp.c $(srcdir)/krlogin.c $(srcdir)/krsh.c $(srcdir)/kcmd.c \
$(srcdir)/forward.c $(srcdir)/compat_recv.c \
$(srcdir)/login.c $(srcdir)/krshd.c $(srcdir)/krlogind.c \
--- src/appl/gssftp/ftpd/Makefile.in
+++ src/appl/gssftp/ftpd/Makefile.in 2005/06/17 14:06:35
@@ -15,6 +15,9 @@
COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
FTPD_LIBS=@FTPD_LIBS@
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
SRCS = $(srcdir)/ftpd.c ftpcmd.c $(srcdir)/popen.c \
$(srcdir)/vers.c \
$(srcdir)/../ftp/glob.c \
--- src/appl/gssftp/ftp/Makefile.in
+++ src/appl/gssftp/ftp/Makefile.in 2005/06/17 13:52:20
@@ -9,6 +9,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
SRCS = $(srcdir)/cmds.c $(srcdir)/cmdtab.c $(srcdir)/domacro.c \
$(srcdir)/ftp.c $(srcdir)/getpass.c $(srcdir)/glob.c \
$(srcdir)/main.c $(srcdir)/radix.c \
--- src/appl/gss-sample/Makefile.in
+++ src/appl/gss-sample/Makefile.in 2005/06/17 13:54:49
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
SRCS= $(srcdir)/gss-client.c $(srcdir)/gss-misc.c $(srcdir)/gss-server.c
OBJS= gss-client.o gss-misc.o gss-server.o
--- src/appl/sample/sclient/Makefile.in
+++ src/appl/sample/sclient/Makefile.in 2005/06/17 14:03:00
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: sclient
sclient: sclient.o $(KRB5_BASE_DEPLIBS)
--- src/appl/sample/sserver/Makefile.in
+++ src/appl/sample/sserver/Makefile.in 2005/06/17 14:13:52
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: sserver
sserver: sserver.o $(KRB5_BASE_DEPLIBS)
--- src/appl/simple/client/Makefile.in
+++ src/appl/simple/client/Makefile.in 2005/06/17 14:03:53
@@ -5,6 +5,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: sim_client
LOCALINCLUDES= -I.. -I$(srcdir)/..
--- src/appl/simple/server/Makefile.in
+++ src/appl/simple/server/Makefile.in 2005/06/17 14:13:21
@@ -8,6 +8,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: sim_server
sim_server: sim_server.o $(KRB5_BASE_DEPLIBS)
--- src/appl/telnet/libtelnet/Makefile.in
+++ src/appl/telnet/libtelnet/Makefile.in 2005/06/17 15:04:13
@@ -32,6 +32,8 @@
SETENVSRC=@SETENVSRC@
SETENVOBJ=@SETENVOBJ@
+CFLAGS += -fPIE
+
LIBBASE=telnet
LIBMAJOR=0
LIBMINOR=0
--- src/appl/telnet/telnetd/Makefile.in
+++ src/appl/telnet/telnetd/Makefile.in 2005/06/17 14:14:22
@@ -33,6 +33,9 @@
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
LIBS= @TELNETD_LIBS@
SRCS= $(srcdir)/telnetd.c \
--- src/appl/telnet/telnet/Makefile.in
+++ src/appl/telnet/telnet/Makefile.in 2005/06/17 14:04:54
@@ -33,6 +33,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
LIBS= @TELNET_LIBS@
SRCS= $(srcdir)/authenc.c $(srcdir)/commands.c $(srcdir)/main.c $(srcdir)/network.c $(srcdir)/ring.c \
--- src/appl/user_user/Makefile.in
+++ src/appl/user_user/Makefile.in 2005/06/17 14:06:03
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: uuclient uuserver
uuclient: client.o $(KRB5_BASE_DEPLIBS)
--- src/clients/kdestroy/Makefile.in
+++ src/clients/kdestroy/Makefile.in 2005/06/17 13:55:38
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all-unix:: kdestroy
all-windows:: $(OUTPRE)kdestroy.exe
--- src/clients/kinit/Makefile.in
+++ src/clients/kinit/Makefile.in 2005/06/17 13:56:02
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
##WIN32##LOCALINCLUDES=-I$(BUILDTOP)\util\windows
##WIN32##DEFINES=-DGETOPT_LONG
--- src/clients/klist/Makefile.in
+++ src/clients/klist/Makefile.in 2005/06/17 13:56:46
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all-unix:: klist
all-windows:: $(OUTPRE)klist.exe
--- src/clients/kpasswd/Makefile.in
+++ src/clients/kpasswd/Makefile.in 2005/06/17 13:57:19
@@ -5,6 +5,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
kpasswd: kpasswd.o $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o kpasswd kpasswd.o $(KRB5_BASE_LIBS)
--- src/clients/ksu/Makefile.in
+++ src/clients/ksu/Makefile.in 2005/06/17 13:59:09
@@ -9,6 +9,9 @@
KSU_LIBS=@KSU_LIBS@
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
SRCS = \
$(srcdir)/krb_auth_su.c \
$(srcdir)/ccache.c \
--- src/clients/kvno/Makefile.in
+++ src/clients/kvno/Makefile.in 2005/06/17 13:59:27
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all-unix:: kvno
all-windows:: $(OUTPRE)kvno.exe
--- src/kadmin/cli/Makefile.in
+++ src/kadmin/cli/Makefile.in 2005/06/17 14:07:57
@@ -5,6 +5,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
PROG = kadmin
OBJS = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o
--- src/kadmin/dbutil/Makefile.in
+++ src/kadmin/dbutil/Makefile.in 2005/06/17 14:09:05
@@ -7,6 +7,9 @@
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
PROG = kdb5_util
OBJS = kdb5_util.o dump.o dumpv4.o loadv4.o \
kdb5_create.o kadm5_create.o string_table.o kdb5_stash.o \
--- src/kadmin/ktutil/Makefile.in
+++ src/kadmin/ktutil/Makefile.in 2005/06/17 14:12:36
@@ -6,6 +6,9 @@
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
OBJS= ktutil.o \
ktutil_ct.o \
ktutil_funcs.o
--- src/kadmin/server/Makefile.in
+++ src/kadmin/server/Makefile.in 2005/06/17 14:08:29
@@ -9,6 +9,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
PROG = kadmind
OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o schpw.o misc.o server_glue_v1.o
--- src/kdc/Makefile.in
+++ src/kdc/Makefile.in 2005/06/17 14:12:04
@@ -13,6 +13,9 @@
PROG_RPATH=$(KRB5_LIBDIR)
FAKEKA=@FAKEKA@
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: krb5kdc rtest $(FAKEKA)
# DEFINES = -DBACKWARD_COMPAT $(KRB4DEF)
--- src/krb524/Makefile.in
+++ src/krb524/Makefile.in 2005/06/17 14:10:47
@@ -27,6 +27,9 @@
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
##WIN32##!ifdef USE_ALTERNATE_KRB4_INCLUDES
##WIN32##KRB4_INCLUDES=-I$(USE_ALTERNATE_KRB4_INCLUDES)
##WIN32##!endif
--- src/slave/Makefile.in
+++ src/slave/Makefile.in 2005/06/17 14:09:57
@@ -5,6 +5,9 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+LDFLAGS += -pie
+
all:: kprop kpropd
CLIENTSRCS= $(srcdir)/kprop.c
--- src/appl/libpty/Makefile.in
+++ src/appl/libpty/Makefile.in 2005/06/17 14:44:50
@@ -10,6 +10,8 @@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
+CFLAGS += -fPIE
+
LIBBASE=pty
LIBMAJOR=1
LIBMINOR=2