Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buildtime error caused by using alternate toolchain #2809

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cross-cisco
Copy link

Addresses issue #2800, where a make $(shell command will fail if an alternate cpp is needed.
Without this change, using a cross-compile toolchain:

> make clean-nbase
In file included from <command-line>:31:                                       
./nmap.h:91:10: fatal error: assert.h: No such file or directory               
   91 | #include <assert.h>
      |          ^~~~~~~~~~
compilation terminated.
cd nbase && make clean
make[1]: Entering directory '.../nmap-7.94/nbase'
rm -f snprintf.o nbase_time.o nbase_str.o nbase_misc.o nbase_memalloc.o nbase_rnd.o nbase_addrset.o libnbase.a
make[1]: Leaving directory '.../nmap-7.94/nbase'
> echo $?
0
>

With this change:

> make clean-nbase
cd nbase && make clean
make[1]: Entering directory '.../nmap-7.94/nbase'
rm -f snprintf.o nbase_time.o nbase_str.o nbase_misc.o nbase_memalloc.o nbase_rnd.o nbase_addrset.o libnbase.a 
make[1]: Leaving directory '.../nmap-7.94/nbase'
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant