Lines 149-159
Link Here
|
149 |
# bug #214642 |
149 |
# bug #214642 |
150 |
BUILD_CPPFLAGS+=" -D_GNU_SOURCE" |
150 |
BUILD_CPPFLAGS+=" -D_GNU_SOURCE" |
151 |
|
151 |
|
152 |
# bug #852665 |
|
|
153 |
if [[ ${CHOST} == *-cygwin* ]]; then |
154 |
BUILD_CPPFLAGS+=" -DBUILDING_NCURSES" |
155 |
fi |
156 |
|
157 |
# Build the various variants of ncurses -- narrow, wide, and threaded. #510440 |
152 |
# Build the various variants of ncurses -- narrow, wide, and threaded. #510440 |
158 |
# Order matters here -- we want unicode/thread versions to come last so that the |
153 |
# Order matters here -- we want unicode/thread versions to come last so that the |
159 |
# binaries in /usr/bin support both wide and narrow. |
154 |
# binaries in /usr/bin support both wide and narrow. |
Lines 182-188
Link Here
|
182 |
echo "int main() {}" | \ |
177 |
echo "int main() {}" | \ |
183 |
$(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& /dev/null \ |
178 |
$(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& /dev/null \ |
184 |
|| lbuildflags="${dbuildflags}" |
179 |
|| lbuildflags="${dbuildflags}" |
185 |
|
180 |
lbuildflags="" |
186 |
# We can't re-use the multilib BUILD_DIR because we run outside of it. |
181 |
# We can't re-use the multilib BUILD_DIR because we run outside of it. |
187 |
BUILD_DIR="${WORKDIR}" \ |
182 |
BUILD_DIR="${WORKDIR}" \ |
188 |
CC=${BUILD_CC} \ |
183 |
CC=${BUILD_CC} \ |
Lines 299-305
Link Here
|
299 |
src_compile() { |
294 |
src_compile() { |
300 |
# See comments in src_configure. |
295 |
# See comments in src_configure. |
301 |
if ! has_version -b "~sys-libs/${P}:0" ; then |
296 |
if ! has_version -b "~sys-libs/${P}:0" ; then |
302 |
BUILD_DIR="${WORKDIR}" do_compile cross -C progs tic$(get_exeext) |
297 |
# We could possibly merge these two branches but opting to be |
|
|
298 |
# conservative when merging some of the Prefix changes. |
299 |
|
300 |
if [[ ${CHOST} == *-cygwin* ]] && ! multilib_is_native_abi ; then |
301 |
# We make 'tic$(x)' here, for Cygwin having x=".exe". |
302 |
BUILD_DIR="${WORKDIR}" \ |
303 |
do_compile cross -C progs all PROGS='tic$(x)' |
304 |
else |
305 |
BUILD_DIR="${WORKDIR}" \ |
306 |
do_compile cross -C progs tic |
307 |
fi |
303 |
fi |
308 |
fi |
304 |
|
309 |
|
305 |
multilib-minimal_src_compile |
310 |
multilib-minimal_src_compile |