Skip to content

Commit

Permalink
biology/ngs-sdk: Attempt to fix build on i386
Browse files Browse the repository at this point in the history
Reported by:	fallout
  • Loading branch information
yurivict committed Apr 28, 2024
1 parent 85db96f commit 67dfb32
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions biology/ngs-sdk/files/patch-ngs-sdk_setup_konfigure.perl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
--- ngs-sdk/setup/konfigure.perl.orig 2021-08-18 16:26:23 UTC
- patch includes removal of '-arch i386' trying to fix build on i386:
- see https://github.com/ncbi/ngs/issues/39

--- ngs-sdk/setup/konfigure.perl.orig 2022-11-15 17:37:36 UTC
+++ ngs-sdk/setup/konfigure.perl
@@ -225,7 +225,7 @@ if ($OS eq 'linux') {
@@ -225,7 +225,7 @@ println $MARCH unless ($AUTORUN);

print "checking machine architecture... " unless ($AUTORUN);
println $MARCH unless ($AUTORUN);
Expand All @@ -9,7 +12,7 @@
println "configure: error: unsupported architecture '$OSTYPE':'$MARCH'";
exit 1;
}
@@ -312,6 +312,8 @@ my $BITS;
@@ -312,6 +312,8 @@ if ($MARCH =~ /x86_64/i) {

if ($MARCH =~ /x86_64/i) {
$BITS = 64;
Expand All @@ -35,3 +38,20 @@
} elsif ($OSTYPE =~ /darwin/i) {
$LPFX = 'lib';
$OBJX = 'o';
@@ -386,14 +398,14 @@ if ($TOOLS =~ /gcc$/) {
my $versionMin = '-mmacosx-version-min=10.10';
$CP = "$CPP -c $versionMin";
if ($BITS ne '32_64') {
- $ARCH_FL = '-arch i386' if ($BITS == 32);
+ $ARCH_FL = '' if ($BITS == 32);
$OPT = '-O3';
$AR = 'ar rc';
$LD = "clang $ARCH_FL";
$LP = "$CPP $versionMin $ARCH_FL";
} else {
$MAKE_MANIFEST = '( echo "$^" > $@/manifest )';
- $ARCH_FL = '-arch i386 -arch x86_64';
+ $ARCH_FL = '-arch x86_64';
$OPT = '-O3';
$AR = 'libtool -static -o';
$LD = "clang -Wl,-arch_multiple $ARCH_FL -Wl,-all_load";

0 comments on commit 67dfb32

Please sign in to comment.