Allow LDFLAGS to be passed from the environment.
old
|
new
|
|
56 | 56 | |
57 | 57 | #---------------------------------------------------------------------- |
58 | 58 | # Initialize all variables here such that nothing can leak in from the |
59 | | # environment except for CC and CFLAGS, which we might have passed in. |
| 59 | # environment except for CC, CFLAGS and LDFLAGS, which we might have passed in. |
60 | 60 | #---------------------------------------------------------------------- |
61 | 61 | |
62 | 62 | CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | make -sf -` |
… |
… |
|
65 | 65 | CFLAGS="${CFLAGS} -Wwrite-strings -Wno-unused-parameter" |
66 | 66 | LDADD= |
67 | 67 | CPPFLAGS= |
68 | | LDFLAGS= |
| 68 | LDFLAGS=`printf "all:\\n\\t@echo \\\$(LDFLAGS)\\n" | make -sf -` |
69 | 69 | PREFIX="/usr/local" |
70 | 70 | BINDIR= |
71 | 71 | SBINDIR= |