Displaying 1 result from an estimated 1 matches for "dwith_stp_prefix".
Did you mean:
with_stp_prefix
2012 Nov 14
2
[LLVMdev] Linking Clang with an optional external library
...the linker flag. Currently I am simply appending to LDFLAGS in Clang's tools/driver/Makefile:
+ifdef STP_INSTALL_PREFIX
+LDFLAGS += -L$(STP_INSTALL_PREFIX)/lib -lstp
+endif
To support CMake builds as well, is it sufficient to add the following to config.h.cmake, and expect the user to pass -DWITH_STP_PREFIX= if they would like to use this feature?
#cmakedefine STP_C_INTERFACE ${WITH_STP_PREFIX}/include/stp/c_interface.h
One potential issue I noticed in writing this patch is that LLVM's config.h and Clang's config.h are both #include-guarded by the CONFIG_H macro, and consequently both canno...