Skip to content

Commit 4e44e0c

Browse files
jwnrtluismarques
authored andcommitted
Move CURSES_LIBS workaround to Azure yaml
This allows _build-deps.yml to be Centos6-specific, while `install-crosstool-ng.sh` can be called from other environments.
1 parent 98d318d commit 4e44e0c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

_build-deps.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ steps:
1111
displayName: 'Install build dependencies'
1212

1313
- bash: |
14+
# Explicitly include libtinfo in the ncurses linker options since it seems to be
15+
# not picked up by configure itself, leading to the following error otherwise:
16+
#
17+
# /usr/local/bin/libtool --tag CC --mode=link gcc -g -O2 -o nconf nconf-nconf.o nconf-nconf.gui.o nconf-zconf.o -lmenuw -lpanelw -lncursesw
18+
# libtool: link: gcc -g -O2 -o nconf nconf-nconf.o nconf-nconf.gui.o nconf-zconf.o -lmenuw -lpanelw -lncursesw
19+
# /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: nconf-nconf.o: undefined reference to symbol 'keypad'
20+
# //lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
21+
export CURSES_LIBS="-lcursesw -ltinfo"
22+
1423
./install-crosstool-ng.sh
1524
displayName: 'Build and install crosstool-ng'
1625

install-crosstool-ng.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,4 @@ git checkout --force "${CROSSTOOL_NG_VERSION}"
2020

2121
./bootstrap
2222

23-
# Explicitly include libtinfo in the ncurses linker options since it seems to be
24-
# not picked up by configure itself, leading to the following error otherwise:
25-
#
26-
# /usr/local/bin/libtool --tag CC --mode=link gcc -g -O2 -o nconf nconf-nconf.o nconf-nconf.gui.o nconf-zconf.o -lmenuw -lpanelw -lncursesw
27-
# libtool: link: gcc -g -O2 -o nconf nconf-nconf.o nconf-nconf.gui.o nconf-zconf.o -lmenuw -lpanelw -lncursesw
28-
# /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: nconf-nconf.o: undefined reference to symbol 'keypad'
29-
# //lib64/libtinfo.so.5: error adding symbols: DSO missing from command line
30-
CURSES_LIBS="-lcursesw -ltinfo" ./configure --prefix=/usr/local && make && sudo make install
23+
./configure --prefix=/usr/local && make && sudo make install

0 commit comments

Comments
 (0)