Commit 2db31e0 (#755) inserted logic into common.mk that attempts to preprocess build/detect/android/bionic.h to determine whether the __BIONIC__ macro is defined (in which case -lrt should not be included in LDFLAGS). However, the path to bionic.h was encoded without regard to DIST_PATH, and so utilizing common.mk anywhere that isn't the top-level directory (such as in the testsuite directory) resulted in a compiler error:
gcc: error: build/detect/android/bionic.h: No such file or directory
gcc: fatal error: no input files
compilation terminated.
This commit adds a $(DIST_PATH) prefix to the path to bionic.h so that it can be located from other applications' Makefiles that use BLIS without error.
Details:
common.mk
that attempts to preprocessbuild/detect/android/bionic.h
to determine whether the__BIONIC__
macro is defined (in which case-lrt
should not be included inLDFLAGS
). However, the path tobionic.h
was encoded without regard toDIST_PATH
, and so utilizingcommon.mk
anywhere that isn't the top-level directory (such as in thetestsuite
directory) resulted in a compiler error:This commit adds a
$(DIST_PATH)
prefix to the path tobionic.h
so that it can be located from other applications' Makefiles that use BLIS without error.