Lines 104-110
Link Here
|
104 |
# We also use these CFLAGS for building the C parts of ghc, ie the rts. |
104 |
# We also use these CFLAGS for building the C parts of ghc, ie the rts. |
105 |
strip-flags |
105 |
strip-flags |
106 |
strip-unsupported-flags |
106 |
strip-unsupported-flags |
107 |
filter-flags -fPIC |
|
|
108 |
|
107 |
|
109 |
GHC_CFLAGS="" |
108 |
GHC_CFLAGS="" |
110 |
for flag in ${CFLAGS}; do |
109 |
for flag in ${CFLAGS}; do |
Lines 154-159
Link Here
|
154 |
base_src_unpack |
153 |
base_src_unpack |
155 |
ghc_setup_cflags |
154 |
ghc_setup_cflags |
156 |
|
155 |
|
|
|
156 |
# Modify the wrapper script from the binary tarball to use GHC_CFLAGS |
157 |
sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_CFLAGS}|" \ |
158 |
"${WORKDIR}/usr/bin/ghc-${PV}" |
159 |
|
157 |
if use binary; then |
160 |
if use binary; then |
158 |
|
161 |
|
159 |
# Move unpacked files to the expected place |
162 |
# Move unpacked files to the expected place |