mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
Build pt_chown as PIE.
This commit is contained in:
parent
f60ddf9bf7
commit
f051ddfe22
@ -1,3 +1,7 @@
|
|||||||
|
2009-06-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* login/Makefile: Build pt_chown as PIE.
|
||||||
|
|
||||||
2009-06-15 Andreas Schwab <aschwab@redhat.com>
|
2009-06-15 Andreas Schwab <aschwab@redhat.com>
|
||||||
|
|
||||||
* debug/xtrace.sh (do_help): Don't treat bug reporting message as
|
* debug/xtrace.sh (do_help): Don't treat bug reporting message as
|
||||||
|
@ -54,10 +54,23 @@ otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
|
|||||||
$(resolvobjdir)/libresolv.a $(common-objpfx)libc.a
|
$(resolvobjdir)/libresolv.a $(common-objpfx)libc.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq (yesyes,$(have-fpie)$(build-shared))
|
||||||
|
pt_chown-cflags += $(pie-ccflag)
|
||||||
|
endif
|
||||||
|
ifeq (yes,$(have-ssp))
|
||||||
|
pt_chown-cflags += -fstack-protector
|
||||||
|
endif
|
||||||
ifeq (yes,$(have-libcap))
|
ifeq (yes,$(have-libcap))
|
||||||
libcap = -lcap
|
libcap = -lcap
|
||||||
endif
|
endif
|
||||||
|
CFLAGS-pt_chown.c = $(pt_chown-cflags)
|
||||||
LDLIBS-pt_chown = $(libcap)
|
LDLIBS-pt_chown = $(libcap)
|
||||||
|
ifeq (yesyes,$(have-fpie)$(build-shared))
|
||||||
|
LDFLAGS-pt_chown = -Wl,-z,now
|
||||||
|
|
||||||
|
$(objpfx)pt_chown: $(objpfx)pt_chown.o
|
||||||
|
$(+link-pie)
|
||||||
|
endif
|
||||||
|
|
||||||
# pt_chown needs to be setuid root.
|
# pt_chown needs to be setuid root.
|
||||||
$(inst_libexecdir)/pt_chown: $(objpfx)pt_chown $(+force)
|
$(inst_libexecdir)/pt_chown: $(objpfx)pt_chown $(+force)
|
||||||
|
Loading…
Reference in New Issue
Block a user