summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/sparc64/string
diff options
context:
space:
mode:
authorpascal <pascal@openbsd.org>2012-08-22 17:19:34 +0000
committerpascal <pascal@openbsd.org>2012-08-22 17:19:34 +0000
commit32b97ded27de5903c20959eb5b8c92c4f703e15d (patch)
treed96f914b3d1abd48bb7c174a7c00a0094e3a49a7 /lib/libc/arch/sparc64/string
parentBuild crunched binaries with -fno-pie. (diff)
downloadwireguard-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/sparc64/string')
-rw-r--r--lib/libc/arch/sparc64/string/ffs.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/sparc64/string/ffs.S b/lib/libc/arch/sparc64/string/ffs.S
index 82d2c073d49..ee55fdab384 100644
--- a/lib/libc/arch/sparc64/string/ffs.S
+++ b/lib/libc/arch/sparc64/string/ffs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.S,v 1.3 2004/10/01 04:08:45 jsg Exp $ */
+/* $OpenBSD: ffs.S,v 1.4 2012/08/22 17:19:35 pascal Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -49,7 +49,7 @@
* that ffstab[0] must be -24 so that ffs(0) will return 0.
*/
ENTRY(ffs)
-#ifdef PIC
+#ifdef __PIC__
PICCY_SET(_C_LABEL(__ffstab), %o2, %o3)
#else
set _C_LABEL(__ffstab), %o2