summaryrefslogtreecommitdiff
path: root/lib/libc/arch/i386/sys/cerror.S
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:19:36 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2012-08-22 17:19:36 +0000
commit0b17a3ce8acce6123900b78334061ec5da7fff13 (patch)
tree899daa1fa911a22452f013b57bb5873909dd7ed4 /lib/libc/arch/i386/sys/cerror.S
parent9e13e109aa5166fac25ad417e38996ce27251c67 (diff)
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/cerror.S')
-rw-r--r--lib/libc/arch/i386/sys/cerror.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/sys/cerror.S b/lib/libc/arch/i386/sys/cerror.S
index 4cffd703531..de36747aa6c 100644
--- a/lib/libc/arch/i386/sys/cerror.S
+++ b/lib/libc/arch/i386/sys/cerror.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cerror.S,v 1.8 2011/04/04 12:42:39 guenther Exp $ */
+/* $OpenBSD: cerror.S,v 1.9 2012/08/22 17:19:34 pascal Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -38,7 +38,7 @@
WEAK_ALIAS(CERROR, _CERROR)
_ENTRY(_CERROR)
-#ifdef PIC
+#ifdef __PIC__
PIC_PROLOGUE
movl PIC_GOT(_C_LABEL(errno)),%ecx
PIC_EPILOGUE