summaryrefslogtreecommitdiffstats
path: root/lib/libmd
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
committeremaste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
commitc7e313326dae74e64f75ded1afb06337d55ecd57 (patch)
tree9eebff29c016aa690ddbb8ca4e33ff42270a0d1c /lib/libmd
parent8723ec446135291c191b573bd01676c8a4c83d3e (diff)
downloadFreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.zip
FreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.tar.gz
Use canonical __PIC__ flag
It is automatically set when -fPIC is passed to the compiler. Reviewed by: dim, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1179
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/rmd160c.c2
-rw-r--r--lib/libmd/sha1c.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libmd/rmd160c.c b/lib/libmd/rmd160c.c
index e01f1e0..522b4c7 100644
--- a/lib/libmd/rmd160c.c
+++ b/lib/libmd/rmd160c.c
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$");
* The assembly-language code is not position-independent, so don't
* try to use it in a shared library.
*/
-#ifdef PIC
+#ifdef __PIC__
#undef RMD160_ASM
#endif
diff --git a/lib/libmd/sha1c.c b/lib/libmd/sha1c.c
index ba3278a..2ca4618e 100644
--- a/lib/libmd/sha1c.c
+++ b/lib/libmd/sha1c.c
@@ -78,7 +78,7 @@ __FBSDID("$FreeBSD$");
* The assembly-language code is not position-independent, so don't
* try to use it in a shared library.
*/
-#ifdef PIC
+#ifdef __PIC__
#undef SHA1_ASM
#endif
OpenPOWER on IntegriCloud