From: Simon Ruderich Date: Sat, 24 Mar 2012 17:04:52 +0000 (+0100) Subject: Fix --arch, missing '=s' in GetOptions(). X-Git-Tag: 0.01~66 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=ac8118289ece66a515f2602928242d9179401fbb Fix --arch, missing '=s' in GetOptions(). Thanks to Bernhard R. Link for spotting this. --- diff --git a/bin/blhc b/bin/blhc index 6c3853a..71c97ce 100755 --- a/bin/blhc +++ b/bin/blhc @@ -312,7 +312,7 @@ if (not Getopt::Long::GetOptions( 'all' => \$option_all, # Misc. 'color' => \$option_color, - 'arch' => \$option_arch, + 'arch=s' => \$option_arch, 'buildd' => \$option_buildd, )) { require Pod::Usage; diff --git a/t/tests.t b/t/tests.t index 3b9c332..6b23f06 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 90; +use Test::More tests => 92; sub is_blhc { @@ -535,6 +535,13 @@ is_blhc 'arch-mipsel', '', 8, LDFLAGS missing (-Wl,-z,relro): gcc -Wl,-z,now -o test test.o '; +is_blhc 'arch-ia64', '--arch i386', 8, + 'CFLAGS missing (-fstack-protector --param=ssp-buffer-size=4): gcc -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -Wformat -Wformat-security -Werror=format-security -Wall -c test.c +LDFLAGS missing (-Wl,-z,relro): gcc -fPIE -pie -o test test.o +CFLAGS missing (-fPIE -fstack-protector --param=ssp-buffer-size=4): gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c +LDFLAGS missing (-pie -Wl,-z,relro): gcc -fPIE -o test test.o +'; + # debian