Skip to content

Commit

Permalink
Merge pull request #1 from leres/master
Browse files Browse the repository at this point in the history
Unbreak building under FreeBSD
  • Loading branch information
markwj committed Jul 30, 2018
2 parents 0fb2019 + 0c627b2 commit 812f959
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tools/kconfig/Makefile
Expand Up @@ -230,12 +230,20 @@ LOADLIBES_nconf = $(shell \
|| pkg-config --libs menu panel ncurses 2>/dev/null \
|| echo "-lmenu -lpanel -lncurses" )

ifeq ("$(OS)","Windows_NT")
# Windows toolchains don't seem to count libintl
# as a system library
# Sometimes libintl is in a separate library (Windows, FreeBSD)
ifneq ($(wildcard /usr/local/lib/libintl.a),)
LOADLIBES_mconf += -L/usr/local/lib -lintl
LOADLIBES_nconf += -L/usr/local/lib -lintl

ifneq ($(wildcard /usr/local/include/libintl.h),)
CFLAGS += -I/usr/local/include
endif
else
ifneq ($(wildcard /usr/lib/libintl.a),)
LOADLIBES_mconf += -lintl
LOADLIBES_nconf += -lintl
endif
endif

qconf.o: .tmp_qtcheck

Expand Down

0 comments on commit 812f959

Please sign in to comment.