2018-06-15 12:52 GMT+09:00 Helmut Grohne <[email protected]>: > On Fri, Jun 15, 2018 at 06:13:40AM +0900, Changwoo Ryu wrote: >> How about using the makefile variable $(CXX) instead of environment >> variable, just for consistency. > > make defaults CXX to plain g++, so unless you change the default, that's > broken for cross builds again. If you add > > -include /usr/share/dpkg/buildtools.mk > > to your debian/rules, $(CXX) will be usable and your variant will work. > > I chose this slightly strange variant, because it picks up the makefile > variable assigned by dh_auto_build and is thus quite short. Provided > that you set up CXX, your variant works as well.
I prefer to add buildtools.mk. Please check if this debian/rules works: https://salsa.debian.org/l10n-korean-team/unalz/blob/077ac16abcfea72bfc4e56d6bc530e13d503958d/debian/rules

