PERFORCE change 156622 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 24 13:45:15 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=156622

Change 156622 by rwatson at rwatson_freebsd_capabilities on 2009/01/24 21:45:03

	After much suffering, remember to use -Wl, for linker arguments on
	the gcc command line.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#4 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#4 (text+ko) ====

@@ -1,5 +1,5 @@
 # $FreeBSD$
-# $P4: //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#3 $
+# $P4: //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Makefile#4 $
 
 WITHOUT_SSP=
 
@@ -11,9 +11,9 @@
 		malloc.c xmalloc.c debug.c libmap.c
 NO_MAN=
 CSTD?=		gnu99
-CFLAGS+=	-Wall -DFREEBSD_ELF -DIN_RTLD
+CFLAGS+=	-Wall -DFREEBSD_ELF -DIN_RTLD -DIN_RTLD_CAP
 CFLAGS+=	-I${.CURDIR}/../rtld-elf/${MACHINE_ARCH} -I${.CURDIR}/../rtld-elf
-LDFLAGS+=	-nostdlib -e .rtld_start -T rtld-elf-cap.xs
+LDFLAGS+=	-nostdlib -Wl,-e,_rtld_cap_start -Wl,-T,rtld-elf-cap.xs
 INSTALLFLAGS=	-C -b
 PRECIOUSPROG=
 BINDIR=		/libexec


More information about the p4-projects mailing list