From ac8118289ece66a515f2602928242d9179401fbb Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 24 Mar 2012 18:04:52 +0100 Subject: [PATCH] Fix --arch, missing '=s' in GetOptions(). Thanks to Bernhard R. Link for spotting this. --- bin/blhc | 2 +- t/tests.t | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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 -- 2.45.2