Commit 14c2a2f
committed
sunxi-fel: find Homebrew libfdt on Darwin
Homebrew's dtc formula installs libfdt headers and libraries under
the dtc prefix. The existing sunxi-fel link line only passed -lfdt,
which leaves clang unable to find libfdt.h when the header is outside
the default include path.
Keep the default -lfdt behavior for systems that install libfdt in
default search paths. On Darwin, add the Homebrew dtc include and
library paths when that prefix is available.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>1 parent 53f54d6 commit 14c2a2f
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
| |||
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
152 | | - | |
153 | | - | |
| 163 | + | |
| 164 | + | |
154 | 165 | | |
155 | 166 | | |
156 | 167 | | |
| |||
0 commit comments