You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
configure: add option to select use of response files
This commit is contained in:
25
configure
vendored
25
configure
vendored
@ -427,6 +427,7 @@ Toolchain options:
|
|||||||
--enable-thumb compile for Thumb instruction set
|
--enable-thumb compile for Thumb instruction set
|
||||||
--enable-lto[=arg] use link-time optimization
|
--enable-lto[=arg] use link-time optimization
|
||||||
--env="ENV=override" override the environment variables
|
--env="ENV=override" override the environment variables
|
||||||
|
--disable-response-files Don't pass the list of objects to linker in a file [autodetect]
|
||||||
|
|
||||||
Advanced options (experts only):
|
Advanced options (experts only):
|
||||||
--malloc-prefix=PREFIX prefix malloc and related names with PREFIX
|
--malloc-prefix=PREFIX prefix malloc and related names with PREFIX
|
||||||
@ -2661,6 +2662,7 @@ CMDLINE_SELECT="
|
|||||||
extra_warnings
|
extra_warnings
|
||||||
logging
|
logging
|
||||||
optimizations
|
optimizations
|
||||||
|
response_files
|
||||||
rpath
|
rpath
|
||||||
stripping
|
stripping
|
||||||
version_tracking
|
version_tracking
|
||||||
@ -4131,6 +4133,7 @@ objformat="elf32"
|
|||||||
x86asmexe_default="nasm"
|
x86asmexe_default="nasm"
|
||||||
windres_default="windres"
|
windres_default="windres"
|
||||||
striptype="direct"
|
striptype="direct"
|
||||||
|
response_files_default="auto"
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
target_os_default=$(tolower $(uname -s))
|
target_os_default=$(tolower $(uname -s))
|
||||||
@ -5176,7 +5179,7 @@ test -n "$cc_type" && enable $cc_type ||
|
|||||||
: ${dep_cc_default:=$cc}
|
: ${dep_cc_default:=$cc}
|
||||||
: ${ld_default:=$cc}
|
: ${ld_default:=$cc}
|
||||||
: ${host_ld_default:=$host_cc}
|
: ${host_ld_default:=$host_cc}
|
||||||
set_default ar as objcc dep_cc ld ln_s host_ld windres
|
set_default ar as objcc dep_cc ld ln_s host_ld windres response_files
|
||||||
|
|
||||||
probe_cc as "$as"
|
probe_cc as "$as"
|
||||||
asflags_filter=$_flags_filter
|
asflags_filter=$_flags_filter
|
||||||
@ -7736,12 +7739,18 @@ case $ld_type in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
{
|
if [ "$response_files" != "no" ]; then
|
||||||
ar_out=${FFTMPDIR}/test$LIBSUF
|
ar_out=${FFTMPDIR}/test$LIBSUF
|
||||||
respfile="@/dev/null"
|
respfile="@/dev/null"
|
||||||
out_arg="$(echo $ar_o | sed "s;\$@;$ar_out;g")"
|
out_arg="$(echo $ar_o | sed "s;\$@;$ar_out;g")"
|
||||||
test_cmd $ar $arflags $out_arg $respfile && ar_objs="true" || ar_objs=""
|
if test_cmd $ar $arflags $out_arg $respfile; then
|
||||||
}
|
response_files="yes"
|
||||||
|
elif [ "$response_files" = "auto" ]; then
|
||||||
|
response_files="no"
|
||||||
|
else
|
||||||
|
die "Response files are not available with this toolchain. Exiting"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
enable frame_thread_encoder
|
enable frame_thread_encoder
|
||||||
|
|
||||||
@ -8119,7 +8128,7 @@ DEPX86ASM=$x86asmexe
|
|||||||
DEPX86ASMFLAGS=\$(X86ASMFLAGS)
|
DEPX86ASMFLAGS=\$(X86ASMFLAGS)
|
||||||
AR=$ar
|
AR=$ar
|
||||||
ARFLAGS=$arflags
|
ARFLAGS=$arflags
|
||||||
AR_OBJS=$ar_objs
|
RESPONSE_FILES=$response_files
|
||||||
AR_O=$ar_o
|
AR_O=$ar_o
|
||||||
AR_CMD=$ar
|
AR_CMD=$ar
|
||||||
NM_CMD=$nm
|
NM_CMD=$nm
|
||||||
|
@ -35,7 +35,7 @@ OBJS += $(SHLIBOBJS)
|
|||||||
endif
|
endif
|
||||||
$(SUBDIR)$(LIBNAME): $(OBJS) $(STLIBOBJS)
|
$(SUBDIR)$(LIBNAME): $(OBJS) $(STLIBOBJS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
ifeq ($(AR_OBJS),true)
|
ifeq ($(RESPONSE_FILES),yes)
|
||||||
$(Q)echo $^ > $@.objs
|
$(Q)echo $^ > $@.objs
|
||||||
$(AR) $(ARFLAGS) $(AR_O) @$@.objs
|
$(AR) $(ARFLAGS) $(AR_O) @$@.objs
|
||||||
else
|
else
|
||||||
@ -72,7 +72,7 @@ $(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
|
|||||||
|
|
||||||
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SHLIBOBJS) $(SLIBOBJS) $(SUBDIR)lib$(NAME).ver
|
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SHLIBOBJS) $(SLIBOBJS) $(SUBDIR)lib$(NAME).ver
|
||||||
$(SLIB_CREATE_DEF_CMD)
|
$(SLIB_CREATE_DEF_CMD)
|
||||||
ifeq ($(AR_OBJS),true)
|
ifeq ($(RESPONSE_FILES),yes)
|
||||||
$(Q)echo $$(filter %.o,$$^) > $$@.objs
|
$(Q)echo $$(filter %.o,$$^) > $$@.objs
|
||||||
$$(LD) $(SHFLAGS) $(LDFLAGS) $(LDSOFLAGS) $$(LD_O) @$$@.objs $(FFEXTRALIBS)
|
$$(LD) $(SHFLAGS) $(LDFLAGS) $(LDSOFLAGS) $$(LD_O) @$$@.objs $(FFEXTRALIBS)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user