[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: make menuconfig with ncursesw in /usr/local
From: "Roberto A. Foglietta" <roberto.foglietta () gmail ! com>
Date: 2021-08-19 8:03:16
Message-ID: CAJGKYO4YaQooJ-p5DvkGtsHjPdPZO1B_AbnS2Eqjaqz+B-9gRQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Il giorno gio 19 ago 2021 alle ore 09:09 Bernhard Reutner-Fischer <
rep.dot.nop@gmail.com> ha scritto:
> On Thu, 19 Aug 2021 03:12:17 +0200
> "Roberto A. Foglietta" <roberto.foglietta@gmail.com> wrote:
>
> > Hi all,
> >
> > I want to compile menuconfig with ncursesw in /usr/local{lib,include}
> >
> > I found HOSTCFLAGS that can help me with -I/usr/local/include but I did
> > not found anything useful for the linker. Could you help me, please?
>
> Did you try HOSTLDFLAGS ?
>
Hi Bernhard,
the problem arises because there is no pkg-config installed and the
libraries are in /usr/local/{lib, include}.
With pkg-config installed or libraries linked in /usr/{lib, include}
everything is fine without any specific flag.
I have tried at first attempt but it did not work, I have also tried to
found a patch
make HOSTCFLAGS='-I/usr/local/include/ncursesw'
HOSTLDFLAGS='-L/usr/local/lib' -C src menuconfig
make: Entering directory '/mnt/sdb4/tinycore-editor/busybox/src'
HOSTLD -L/usr/local/lib scripts/kconfig/lxdialog/lxdialog
/usr/local/bin/ld: scripts/kconfig/lxdialog/checklist.o: in function
`print_item':
checklist.c:(.text+0x40): undefined reference to `wmove
the result is the same with and without this patch that helped me to show
the command.
--- src/scripts/Makefile.host.orig
+++ src/scripts/Makefile.host
@@ -105,7 +105,7 @@
# Link an executable based on list of .o files, all plain c
# host-cmulti -> executable
-quiet_cmd_host-cmulti = HOSTLD $@
+quiet_cmd_host-cmulti = HOSTLD $(HOSTLDFLAGS) $@
cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \
$(addprefix $(obj)/,$($(@F)-objs)) \
$(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
@@ -121,7 +121,7 @@
# Link an executable based on list of .o files, a mixture of .c and .cc
# host-cxxmulti -> executable
-quiet_cmd_host-cxxmulti = HOSTLD $@
+quiet_cmd_host-cxxmulti = HOSTLD $(HOSTLDFLAGS) $@
cmd_host-cxxmulti = $(HOSTCXX) $(HOSTLDFLAGS) -o $@ \
$(foreach o,objs cxxobjs,\
$(addprefix $(obj)/,$($(@F)-$(o)))) \
--- src/scripts/kconfig/lxdialog/check-lxdialog.sh.orig
+++ src/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -8,7 +8,7 @@
pkg-config --libs ncurses 2>/dev/null && exit
for ext in so a dll.a dylib ; do
for lib in ncursesw ncurses curses ; do
- $cc -print-file-name=lib${lib}.${ext} | grep -q /
+ $cc ${HOSTCFLAGS} ${HOSTLDFLAGS} -print-file-name=lib${lib}.${ext} | grep
-q /
if [ $? -eq 0 ]; then
echo "-l${lib}"
exit
[Attachment #5 (text/html)]
<div dir="ltr"><div dir="ltr">Il giorno gio 19 ago 2021 alle ore 09:09 Bernhard \
Reutner-Fischer <<a \
href="mailto:rep.dot.nop@gmail.com">rep.dot.nop@gmail.com</a>> ha \
scritto:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On Thu, 19 Aug 2021 03:12:17 +0200<br> \
"Roberto A. Foglietta" <<a href="mailto:roberto.foglietta@gmail.com" \
target="_blank">roberto.foglietta@gmail.com</a>> wrote:<br> <br>
> Hi all,<br>
> <br>
> I want to compile menuconfig with ncursesw in /usr/local{lib,include}<br>
> <br>
> I found HOSTCFLAGS that can help me with -I/usr/local/include but I did<br>
> not found anything useful for the linker. Could you help me, please?<br>
<br>
Did you try HOSTLDFLAGS ?<br></blockquote><div><br></div><div>Hi \
Bernhard,</div><div><br></div><div> the problem arises because there is no \
pkg-config installed and the libraries are in /usr/local/{lib, \
include}.</div><div><br></div><div> With pkg-config installed or libraries linked in \
/usr/{lib, include} everything is fine without any specific \
flag.</div><div><br></div><div> I have tried at first attempt but it did not work, I \
have also tried to found a patch </div><div><br></div><div>make \
HOSTCFLAGS='-I/usr/local/include/ncursesw' \
HOSTLDFLAGS='-L/usr/local/lib' -C src \
menuconfig</div><div><br></div><div>make: Entering directory \
'/mnt/sdb4/tinycore-editor/busybox/src'<br> HOSTLD -L/usr/local/lib \
scripts/kconfig/lxdialog/lxdialog<br>/usr/local/bin/ld: \
scripts/kconfig/lxdialog/checklist.o: in function \
`print_item':<br>checklist.c:(.text+0x40): undefined reference to \
`wmove<br></div><div><br></div><div>the result is the same with and without this \
patch that helped me to show the command.</div><div><br></div><div>--- \
src/scripts/Makefile.host.orig<br>+++ src/scripts/Makefile.host<br>@@ -105,7 +105,7 \
@@<br> <br> # Link an executable based on list of .o files, all plain c<br> # \
host-cmulti -> executable<br>-quiet_cmd_host-cmulti = HOSTLD \
$@<br>+quiet_cmd_host-cmulti = HOSTLD $(HOSTLDFLAGS) $@<br> \
cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \<br> $(addprefix \
$(obj)/,$($(@F)-objs)) \<br> $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))<br>@@ \
-121,7 +121,7 @@<br> <br> # Link an executable based on list of .o files, a mixture \
of .c and .cc<br> # host-cxxmulti -> executable<br>-quiet_cmd_host-cxxmulti = \
HOSTLD $@<br>+quiet_cmd_host-cxxmulti = HOSTLD $(HOSTLDFLAGS) $@<br> \
cmd_host-cxxmulti = $(HOSTCXX) $(HOSTLDFLAGS) -o $@ \<br> $(foreach o,objs \
cxxobjs,\<br> $(addprefix $(obj)/,$($(@F)-$(o)))) \
\<br></div><div><br></div><div>--- \
src/scripts/kconfig/lxdialog/check-lxdialog.sh.orig<br>+++ \
src/scripts/kconfig/lxdialog/check-lxdialog.sh<br>@@ -8,7 +8,7 @@<br> pkg-config \
--libs ncurses 2>/dev/null && exit<br> for ext in so a dll.a dylib ; \
do<br> for lib in ncursesw ncurses curses ; do<br>- $cc \
-print-file-name=lib${lib}.${ext} | grep -q /<br>+ $cc ${HOSTCFLAGS} ${HOSTLDFLAGS} \
-print-file-name=lib${lib}.${ext} | grep -q /<br> if [ $? -eq 0 ]; then<br> \
echo "-l${lib}"<br> exit<br></div><div><br></div></div></div>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic