Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#372 closed defect (fixed)

Replace make LDFLAGS=-static with export LDFLAGS=-static where needed

Reported by: timothy@… Owned by: timothy@…
Priority: high Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

2 reports today indicate that fileutils is not compiling statically on specific machines. Both of these were resolved by exporting LDFLAGS instead of passing it as an argument to make. Other possible culprits include texinfo, diffutils, and grep.

Look into replacing this globally.

Change History (4)

comment:1 by timothy@…, 22 years ago

fileutils, diffutils, texinfo and grep all compile fine with:

export LDFLAGS=-static ./configure * unset LDFLAGS *

It is not necessary to change this globally. Indeed, many programs will simply ignore the flag if presented in this way. I recommend that this be implemented for the above programs. Any objections?

comment:2 by timothy@…, 22 years ago

As Seth pointed out, newer configure scripts can accept variables as arguments. Such that:

./configure * LDFLAGS=-static

may be used instead of setting and unsetting LDFLAGS. I'll test this later, to make sure it works with the offending packages. Seth recommended that "-static" be surrounded by quotes, and i agree.

comment:3 by timothy@…, 22 years ago

Owner: changed from lfs-book@… to timothy@…

comment:4 by timothy@…, 22 years ago

Resolution: fixed
Status: newclosed

done this for fileutils, diffutils, texinfo and grep.

Note: See TracTickets for help on using tickets.