Skip to content

Commit

Permalink
fix sdcv error 'GLIBCXX_3.4.15' not found
Browse files Browse the repository at this point in the history
It seems that when environment variable `CXX` is defined the `AM_CXXFLAGS`
is ignored. This patch adds `-static-libstdc++` directly in `LDFLAGS` so
that sdcv need not to link libstdc++.so at run time.
  • Loading branch information
chrox committed Sep 30, 2014
1 parent 5fbe477 commit ec78d84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ endif
PKG_CONFIG_PATH="../$(GLIB_DIR)/lib/pkgconfig" \
CXX="$(CXX)" \
CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/$(ZLIB_DIR)" \
LDFLAGS="$(LDFLAGS) -L$(CURDIR)/$(ZLIB_DIR)" \
AM_CXXFLAGS="-static-libstdc++" \
LDFLAGS="$(LDFLAGS) -L$(CURDIR)/$(ZLIB_DIR) -static-libstdc++" \
&& $(MAKE) -j$(PROCESSORS) --silent
# restore to original source
cd $(SDCV_DIR) && sed -i 's|guint64 page_size|guint32 page_size|' src/lib/lib.cpp
Expand Down

0 comments on commit ec78d84

Please sign in to comment.