diff options
Diffstat (limited to 'dh_illumos_gate')
-rwxr-xr-x | dh_illumos_gate | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dh_illumos_gate b/dh_illumos_gate index 72affcd..ed8da8e 100755 --- a/dh_illumos_gate +++ b/dh_illumos_gate @@ -275,6 +275,8 @@ if (-f $Makefile_lib) { Remove trailing spaces in the line C<TEXT_DOMAIN= SUNW_OST_OSCMD > Maybe we should patch GNU make to do it for us in SunOS mode. + Remove linker flag for setting ELF interpreter (-Wl,-I/lib/ld.so.1) + =cut my $Makefile_cmd = 'usr/src/cmd/Makefile.cmd'; @@ -287,6 +289,10 @@ if (-f $Makefile_cmd) { /^TEXT_DOMAIN/ s,\s+$,,g; ', $Makefile_cmd ); + doit('sed', '-r', '-i', ' + /LDFLAGS\s*\+=\s*-Wl,-I\/lib\/ld\.so\.1/d; + ', $Makefile_cmd + ); } |