diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2013-12-08 17:17:12 -0500 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-12-09 11:46:44 +0100 |
commit | 61b203ffe6c71789acb14f51483d63fe9e516842 (patch) | |
tree | 700785a1a865bc3e21f3bfa499601011e212cc45 | |
parent | 9b8d11a76ae7bca8bbb58abb822138f8b42c776c (diff) | |
download | ffmpeg-61b203ffe6c71789acb14f51483d63fe9e516842.tar.gz |
configure: detect Solaris libc
Add preprocessor flags for API availability as necessary.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3179,7 +3179,6 @@ case $target_os in SHFLAGS='-shared -Wl,-h,$$(@F)' enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS" network_extralibs="-lsocket -lnsl" - add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 # When using suncc to build, the Solaris linker will mark # an executable with each instruction set encountered by # the Solaris assembler. As our libraries contain their own @@ -3409,6 +3408,9 @@ elif check_cpp_condition stddef.h "defined __KLIBC__"; then libc_type=klibc elif check_cpp_condition sys/cdefs.h "defined __BIONIC__"; then libc_type=bionic +elif check_cpp_condition sys/brand.h "defined SOLARIS_BRAND_NAME"; then + libc_type=solaris + add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 fi test -n "$libc_type" && enable $libc_type |