gdb: fix option renaming: static -> gdbstatic.
This commit is contained in:
parent
c9af530628
commit
abb9291457
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'gdb'
|
||||
pkgname=gdb
|
||||
version=7.7.1
|
||||
revision=2
|
||||
revision=3
|
||||
patch_args="-Np1"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-werror --disable-nls --with-system-readline --with-system-gdbinit=/etc/gdb/gdbinit"
|
||||
|
@ -16,7 +16,7 @@ distfiles="http://ftp.gnu.org/gnu/gdb/gdb-$version.tar.bz2"
|
|||
checksum=0dbd5260406f1b0c70fcf027c6488527fadde0cd9bb574593491fe076eb03aa5
|
||||
|
||||
# Package build options
|
||||
build_options="gdbserver static"
|
||||
build_options="gdbserver gdbstatic"
|
||||
desc_option_gdbserver="Enable support for building GDB server"
|
||||
desc_option_gdbstatic="Enable support for building GDB statically"
|
||||
|
||||
|
@ -29,11 +29,11 @@ else
|
|||
configure_args+=" --enable-gdbserver=no"
|
||||
fi
|
||||
|
||||
if [ "$build_option_static" ]; then
|
||||
if [ "$build_option_gdbstatic" ]; then
|
||||
configure_args+=" CFLAGS=-static"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gdbserver" -a "$build_option_static" ]; then
|
||||
if [ "$build_option_gdbserver" -a "$build_option_gdbstatic" ]; then
|
||||
msg_error "$pkgver: gdbserver and static options cannot be enabled at the same time!\n"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue