History

configure: Prefix libc-related variables with "libc_"

Simplifies host/target libc detection splitting.

Diego Biurrun committed 12 years ago

Commit d64341e1 parent 61b203f5 files · +11 −12Browse files

Unified · Split

5 files
  1. configure +5 −5
  2. libavcodec/Makefile +1 −2
  3. libavdevice/Makefile +2 −2
  4. libavformat/Makefile +2 −2
  5. libavutil/internal.h +1 −1
configure+5−5
@@ -1332,6 +1332,7 @@ HAVE_LIST=" · 1331 unmodified lines
13321332 isatty
13331333 jack_port_get_latency_range
13341334 ldbrx
1335+ libc_msvcrt
13351336 libdc1394_1
13361337 libdc1394_2
13371338 local_aligned_16
@@ -1349,7 +1350,6 @@ HAVE_LIST=" · 11 unmodified lines
13491350 mm_empty
13501351 mmap
13511352 mprotect
1352− msvcrt
13531353 nanosleep
13541354 poll_h
13551355 posix_memalign
@@ -1557,7 +1557,7 @@ need_memalign="altivec neon sse" · 201 unmodified lines
15571557
15581558 symver_if_any="symver_asm_label symver_gnu_asm"
15591559
1560−log2_deps="!msvcrt"
1560+log2_deps="!libc_msvcrt"
15611561
15621562 # subsystems
15631563 dct_select="rdft"
@@ -3413,7 +3413,7 @@ elif check_cpp_condition sys/brand.h "defined SOLARIS_BRAND_NAME"; then · 1849 unmodified lines
34133413 add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
34143414 fi
34153415
3416−test -n "$libc_type" && enable $libc_type
3416+test -n "$libc_type" && enable libc_$libc_type
34173417
34183418 case $libc_type in
34193419 bionic)
@@ -3429,7 +3429,7 @@ esac · 9 unmodified lines
34293429
34303430 # hacks for compiler/libc/os combinations
34313431
3432−if enabled_all tms470 glibc; then
3432+if enabled_all tms470 libc_glibc; then
34333433 CPPFLAGS="-I${source_path}/compat/tms470 ${CPPFLAGS}"
34343434 add_cppflags -D__USER_LABEL_PREFIX__=
34353435 add_cppflags -D__builtin_memset=memset
@@ -3437,7 +3437,7 @@ if enabled_all tms470 glibc; then · 1 unmodified line
34373437 add_cflags -pds=48 # incompatible redefinition of macro
34383438 fi
34393439
3440−if enabled_all ccc glibc; then
3440+if enabled_all ccc libc_glibc; then
34413441 add_ldflags -Wl,-z,now # calls to libots crash without this
34423442 fi
34433443
libavcodec/Makefile+1−2
@@ -25,8 +25,6 @@ OBJS = allcodecs.o \ · 24 unmodified lines
2525 raw.o \
2626 utils.o \
2727
28−OBJS-$(HAVE_MSVCRT) += file_open.o
29−
3028 # parts needed for many different codecs
3129 OBJS-$(CONFIG_AANDCTTABLES) += aandcttab.o
3230 OBJS-$(CONFIG_AC3DSP) += ac3dsp.o
@@ -677,6 +675,7 @@ OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF) += remove_extradata_bsf.o · 644 unmodified lines
677675 OBJS-$(CONFIG_TEXT2MOVSUB_BSF) += movsub_bsf.o
678676
679677 # thread libraries
678+OBJS-$(HAVE_LIBC_MSVCRT) += file_open.o
680679 OBJS-$(HAVE_PTHREADS) += pthread.o pthread_slice.o pthread_frame.o
681680 OBJS-$(HAVE_W32THREADS) += pthread.o pthread_slice.o pthread_frame.o
682681
libavdevice/Makefile+2−2
@@ -7,8 +7,6 @@ HEADERS = avdevice.h \ · 6 unmodified lines
77 OBJS = alldevices.o \
88 avdevice.o \
99
10−OBJS-$(HAVE_MSVCRT) += file_open.o
11−
1210 # input/output devices
1311 OBJS-$(CONFIG_ALSA_INDEV) += alsa-audio-common.o \
1412 alsa-audio-dec.o
@@ -31,6 +29,8 @@ OBJS-$(CONFIG_X11GRAB_INDEV) += x11grab.o · 16 unmodified lines
3129 OBJS-$(CONFIG_LIBCDIO_INDEV) += libcdio.o
3230 OBJS-$(CONFIG_LIBDC1394_INDEV) += libdc1394.o
3331
32+OBJS-$(HAVE_LIBC_MSVCRT) += file_open.o
33+
3434 SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H) += alsa-audio.h
3535 SKIPHEADERS-$(HAVE_SNDIO_H) += sndio_common.h
3636
libavformat/Makefile+2−2
@@ -23,8 +23,6 @@ OBJS = allformats.o \ · 22 unmodified lines
2323 url.o \
2424 utils.o \
2525
26−OBJS-$(HAVE_MSVCRT) += file_open.o
27−
2826 OBJS-$(CONFIG_NETWORK) += network.o
2927 OBJS-$(CONFIG_RIFFDEC) += riffdec.o
3028 OBJS-$(CONFIG_RIFFENC) += riffenc.o
@@ -388,6 +386,8 @@ OBJS-$(CONFIG_TLS_PROTOCOL) += tls.o · 357 unmodified lines
388386 OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o
389387 OBJS-$(CONFIG_UNIX_PROTOCOL) += unix.o
390388
389+OBJS-$(HAVE_LIBC_MSVCRT) += file_open.o
390+
391391 SKIPHEADERS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh.h
392392 SKIPHEADERS-$(CONFIG_NETWORK) += network.h rtsp.h
393393
libavutil/internal.h+1−1
@@ -204,7 +204,7 @@ void avpriv_report_missing_feature(void *avc, · 203 unmodified lines
204204 void avpriv_request_sample(void *avc,
205205 const char *msg, ...) av_printf_format(2, 3);
206206
207−#if HAVE_MSVCRT
207+#if HAVE_LIBC_MSVCRT
208208 #define avpriv_open ff_open
209209 #endif
210210

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t