Pass ASFLAGS to assembler instead of CFLAGS

Originally committed as revision 19412 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-07-12 13:29:53 +00:00
parent 7f32f40c89
commit 2f2e6c7ce1
2 changed files with 9 additions and 2 deletions

View File

@ -24,7 +24,7 @@ CPPFLAGS += -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c $(CC_O) $< $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c $(CC_O) $<
%.o: %.S %.o: %.S
$(AS) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< $(AS) $(CPPFLAGS) $(ASFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
%.ho: %.h %.ho: %.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $< $(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<

9
configure vendored
View File

@ -520,6 +520,10 @@ add_cflags(){
append CFLAGS "$@" append CFLAGS "$@"
} }
add_asflags(){
append ASFLAGS "$@"
}
add_ldflags(){ add_ldflags(){
append LDFLAGS "$@" append LDFLAGS "$@"
} }
@ -551,7 +555,7 @@ check_as(){
log check_as "$@" log check_as "$@"
cat > $TMPC cat > $TMPC
log_file $TMPC log_file $TMPC
check_cmd $as $CPPFLAGS $CFLAGS "$@" -c -o $TMPO $TMPC check_cmd $as $CPPFLAGS $ASFLAGS "$@" -c -o $TMPO $TMPC
} }
check_asm(){ check_asm(){
@ -1494,6 +1498,7 @@ test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
set_default as dep_cc ld set_default as dep_cc ld
add_cflags $extra_cflags add_cflags $extra_cflags
add_asflags $extra_cflags
if test -n "$sysroot"; then if test -n "$sysroot"; then
case "$cc_type" in case "$cc_type" in
@ -1920,6 +1925,7 @@ if test $cpu != "generic"; then
fi fi
add_cflags $cpuflags add_cflags $cpuflags
add_asflags $cpuflags
check_cc <<EOF || die "Symbol mangling check failed." check_cc <<EOF || die "Symbol mangling check failed."
int ff_extern; int ff_extern;
@ -2498,6 +2504,7 @@ enabled stripping &&
echo "CPPFLAGS?=$CPPFLAGS" >> config.mak echo "CPPFLAGS?=$CPPFLAGS" >> config.mak
echo "CFLAGS=$CFLAGS" >> config.mak echo "CFLAGS=$CFLAGS" >> config.mak
echo "ASFLAGS=$ASFLAGS" >> config.mak
echo "CC_O=$CC_O" >> config.mak echo "CC_O=$CC_O" >> config.mak
echo "LDFLAGS=$LDFLAGS" >> config.mak echo "LDFLAGS=$LDFLAGS" >> config.mak
echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak