$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c $(CC_O) $<
%.o: %.S
- $(AS) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
+ $(AS) $(CPPFLAGS) $(ASFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
%.ho: %.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
append CFLAGS "$@"
}
+add_asflags(){
+ append ASFLAGS "$@"
+}
+
add_ldflags(){
append LDFLAGS "$@"
}
log check_as "$@"
cat > $TMPC
log_file $TMPC
- check_cmd $as $CPPFLAGS $CFLAGS "$@" -c -o $TMPO $TMPC
+ check_cmd $as $CPPFLAGS $ASFLAGS "$@" -c -o $TMPO $TMPC
}
check_asm(){
set_default as dep_cc ld
add_cflags $extra_cflags
+add_asflags $extra_cflags
if test -n "$sysroot"; then
case "$cc_type" in
fi
add_cflags $cpuflags
+add_asflags $cpuflags
check_cc <<EOF || die "Symbol mangling check failed."
int ff_extern;
echo "CPPFLAGS?=$CPPFLAGS" >> config.mak
echo "CFLAGS=$CFLAGS" >> config.mak
+echo "ASFLAGS=$ASFLAGS" >> config.mak
echo "CC_O=$CC_O" >> config.mak
echo "LDFLAGS=$LDFLAGS" >> config.mak
echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak