mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
configure: remove unused flag save/restore functions
Originally committed as revision 23779 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9efdf9b5c0
commit
3091eeb363
36
configure
vendored
36
configure
vendored
@ -513,42 +513,6 @@ print_config(){
|
||||
done
|
||||
}
|
||||
|
||||
flags_saved(){
|
||||
(: ${SAVE_CFLAGS?}) 2> /dev/null
|
||||
}
|
||||
|
||||
save_flags(){
|
||||
flags_saved && return
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
SAVE_LDFLAGS="$LDFLAGS"
|
||||
SAVE_extralibs="$extralibs"
|
||||
}
|
||||
|
||||
restore_flags(){
|
||||
flags_saved || return
|
||||
CFLAGS="$SAVE_CFLAGS"
|
||||
LDFLAGS="$SAVE_LDFLAGS"
|
||||
extralibs="$SAVE_extralibs"
|
||||
unset SAVE_CFLAGS
|
||||
unset SAVE_LDFLAGS
|
||||
unset SAVE_extralibs
|
||||
}
|
||||
|
||||
temp_cflags(){
|
||||
save_flags
|
||||
CFLAGS="$CFLAGS $*"
|
||||
}
|
||||
|
||||
temp_ldflags(){
|
||||
save_flags
|
||||
LDFLAGS="$LDFLAGS $*"
|
||||
}
|
||||
|
||||
temp_extralibs(){
|
||||
save_flags
|
||||
extralibs="$extralibs $*"
|
||||
}
|
||||
|
||||
append(){
|
||||
var=$1
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user