Skip to content

Commit 55bed1a

Browse files
committed
osm_pbf_parser: Force LANG=C in Makefile
As we are parsing message from gcc, we have to force it in english.
1 parent 96b4a80 commit 55bed1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/osm_pbf_parser/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ BOOST_LIB2=boost_python$(PYTHON_VERSION_MN)
1010

1111
# Detection of -lboost_python option to use is done by lanching gcc, which
1212
# generates a different error message if it cannot find library.
13-
ifeq ($(shell gcc -l$(BOOST_LIB1) 2>&1 | grep -c "undefined reference to .main."),1)
13+
ifeq ($(shell LANG=C gcc -l$(BOOST_LIB1) 2>&1 | grep -c "undefined reference to .main."),1)
1414
BOOST_LIB = $(BOOST_LIB1)
15-
else ifeq ($(shell gcc -l$(BOOST_LIB2) 2>&1 | grep -c "undefined reference to .main."),1)
15+
else ifeq ($(shell LANG=C gcc -l$(BOOST_LIB2) 2>&1 | grep -c "undefined reference to .main."),1)
1616
BOOST_LIB = $(BOOST_LIB2)
1717
else
1818
$(error Cannot find boost_python library from $(BOOST_LIB1) or $(BOOST_LIB2))

0 commit comments

Comments
 (0)