diff options
author | 2012-08-22 17:19:34 +0000 | |
---|---|---|
committer | 2012-08-22 17:19:34 +0000 | |
commit | 32b97ded27de5903c20959eb5b8c92c4f703e15d (patch) | |
tree | d96f914b3d1abd48bb7c174a7c00a0094e3a49a7 /lib/libc/arch/i386/sys/tfork_thread.S | |
parent | Build crunched binaries with -fno-pie. (diff) | |
download | wireguard-openbsd-32b97ded27de5903c20959eb5b8c92c4f703e15d.tar.xz wireguard-openbsd-32b97ded27de5903c20959eb5b8c92c4f703e15d.zip |
Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.
ok matthew@, conceptually ok kurt@
Diffstat (limited to 'lib/libc/arch/i386/sys/tfork_thread.S')
-rw-r--r-- | lib/libc/arch/i386/sys/tfork_thread.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/sys/tfork_thread.S b/lib/libc/arch/i386/sys/tfork_thread.S index 57a7339eed3..ee82d061265 100644 --- a/lib/libc/arch/i386/sys/tfork_thread.S +++ b/lib/libc/arch/i386/sys/tfork_thread.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tfork_thread.S,v 1.3 2012/06/21 00:56:59 guenther Exp $ */ +/* $OpenBSD: tfork_thread.S,v 1.4 2012/08/22 17:19:34 pascal Exp $ */ /*- * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org> * All rights reserved. @@ -109,7 +109,7 @@ ENTRY(__tfork_thread) popl %esi movl %ebp, %esp popl %ebp -#ifdef PIC +#ifdef __PIC__ PIC_PROLOGUE movl PIC_GOT(CERROR), %ecx PIC_EPILOGUE |