diff options
author | emaste <emaste@FreeBSD.org> | 2014-11-21 02:05:48 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-11-21 02:05:48 +0000 |
commit | c7e313326dae74e64f75ded1afb06337d55ecd57 (patch) | |
tree | 9eebff29c016aa690ddbb8ca4e33ff42270a0d1c /lib/libkiconv | |
parent | 8723ec446135291c191b573bd01676c8a4c83d3e (diff) | |
download | FreeBSD-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/libkiconv')
-rw-r--r-- | lib/libkiconv/quirks.c | 4 | ||||
-rw-r--r-- | lib/libkiconv/xlat16_iconv.c | 4 | ||||
-rw-r--r-- | lib/libkiconv/xlat16_sysctl.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libkiconv/quirks.c b/lib/libkiconv/quirks.c index d1cc607..2bab7c5 100644 --- a/lib/libkiconv/quirks.c +++ b/lib/libkiconv/quirks.c @@ -31,7 +31,7 @@ * when statically linked. */ -#ifdef PIC +#ifdef __PIC__ /* * Why do we need quirks? @@ -193,4 +193,4 @@ kiconv_quirkcs(const char* base __unused, int vendor __unused) return (base); } -#endif /* PIC */ +#endif /* __PIC__ */ diff --git a/lib/libkiconv/xlat16_iconv.c b/lib/libkiconv/xlat16_iconv.c index fee3c77..702eba8 100644 --- a/lib/libkiconv/xlat16_iconv.c +++ b/lib/libkiconv/xlat16_iconv.c @@ -31,7 +31,7 @@ * when statically linked. */ -#ifdef PIC +#ifdef __PIC__ #include <sys/types.h> #include <sys/iconv.h> @@ -462,4 +462,4 @@ kiconv_add_xlat16_cspairs(const char *tocode __unused, const char *fromcode __un return (-1); } -#endif /* PIC */ +#endif /* __PIC__ */ diff --git a/lib/libkiconv/xlat16_sysctl.c b/lib/libkiconv/xlat16_sysctl.c index ae4dae7..7c3504f 100644 --- a/lib/libkiconv/xlat16_sysctl.c +++ b/lib/libkiconv/xlat16_sysctl.c @@ -37,7 +37,7 @@ * when statically linked. */ -#ifdef PIC +#ifdef __PIC__ #include <sys/types.h> #include <sys/iconv.h> @@ -82,4 +82,4 @@ kiconv_add_xlat16_table(const char *to __unused, const char *from __unused, return (EINVAL); } -#endif /* PIC */ +#endif /* __PIC__ */ |