#372 closed defect (fixed)
Replace make LDFLAGS=-static with export LDFLAGS=-static where needed
Reported by: | Owned by: | ||
---|---|---|---|
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 , 22 years ago
comment:2 by , 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 , 22 years ago
Owner: | changed from | to
---|
comment:4 by , 22 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
done this for fileutils, diffutils, texinfo and grep.
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?