diff options
author | 2012-08-22 17:19:34 +0000 | |
---|---|---|
committer | 2012-08-22 17:19:34 +0000 | |
commit | 32b97ded27de5903c20959eb5b8c92c4f703e15d (patch) | |
tree | d96f914b3d1abd48bb7c174a7c00a0094e3a49a7 /lib/librthread | |
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/librthread')
-rw-r--r-- | lib/librthread/arch/m68k/cerror.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/arch/m68k/cerror.S b/lib/librthread/arch/m68k/cerror.S index 0705a4aa841..15c2b617cdc 100644 --- a/lib/librthread/arch/m68k/cerror.S +++ b/lib/librthread/arch/m68k/cerror.S @@ -1,4 +1,4 @@ -/* $OpenBSD: cerror.S,v 1.1 2011/10/17 06:39:20 guenther Exp $ */ +/* $OpenBSD: cerror.S,v 1.2 2012/08/22 17:19:35 pascal Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -38,7 +38,7 @@ .globl ___errno __cerror: movl d0,sp@- -#ifdef PIC +#ifdef __PIC__ movl #__GLOBAL_OFFSET_TABLE_,a0 lea pc@(0,a0:l),a0 movl a0@(___errno:l),a0 |