{"action":"opened","issue":{"url":"https://api.github.com/repos/eliben/llvm-clang-samples/issues/15","labels_url":"https://api.github.com/repos/eliben/llvm-clang-samples/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/eliben/llvm-clang-samples/issues/15/comments","events_url":"https://api.github.com/repos/eliben/llvm-clang-samples/issues/15/events","html_url":"https://github.com/eliben/llvm-clang-samples/issues/15","id":58143964,"number":15,"title":"Use llvm-config in Makefile","user":{"login":"jethrogb","id":1132307,"avatar_url":"https://avatars.githubusercontent.com/u/1132307?v=3","gravatar_id":"","url":"https://api.github.com/users/jethrogb","html_url":"https://github.com/jethrogb","followers_url":"https://api.github.com/users/jethrogb/followers","following_url":"https://api.github.com/users/jethrogb/following{/other_user}","gists_url":"https://api.github.com/users/jethrogb/gists{/gist_id}","starred_url":"https://api.github.com/users/jethrogb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jethrogb/subscriptions","organizations_url":"https://api.github.com/users/jethrogb/orgs","repos_url":"https://api.github.com/users/jethrogb/repos","events_url":"https://api.github.com/users/jethrogb/events{/privacy}","received_events_url":"https://api.github.com/users/jethrogb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-18T23:08:34Z","updated_at":"2015-02-18T23:08:34Z","closed_at":null,"body":"Why don't you just use llvm-config in the Makefile? You just point it to the llvm-config of your LLVM installation and you're set, e.g.:\r\n\r\n```\r\nLLVM_CONFIG=llvm-config-3.5\r\nLLVM_CXXFLAGS := `$(LLVM_CONFIG) --cxxflags`\r\nLLVM_LDFLAGS := `$(LLVM_CONFIG) --ldflags --libs --system-libs` \r\nLLVM_LDFLAGS_NOLIBS := `$(LLVM_CONFIG) --ldflags`\r\nCLANG_INCLUDES := -I`$(LLVM_CONFIG) --includedir`/clang\r\n```"}}