Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-compile: bad $PKG_CONFIG_PATH #143

Open
rkjdid opened this issue Sep 16, 2015 · 1 comment
Open

cross-compile: bad $PKG_CONFIG_PATH #143

rkjdid opened this issue Sep 16, 2015 · 1 comment

Comments

@rkjdid
Copy link

rkjdid commented Sep 16, 2015

I had some trouble x-compiling hammer, pkg-config was giving me the 'glib-2.0.pc' not found. I'm not really sure what env variable got lost or how it did, but a friend helped me fix it with the following patch :

--- hammer-1.0.0-rc3.orig/SConstruct    2014-04-14 00:55:56.000000000 +0200
+++ hammer-1.0.0-rc3/SConstruct 2015-09-16 16:10:37.523867180 +0200
@@ -98,7 +98,7 @@
     env.Replace(CC="clang",
                 CXX="clang++")

-env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))
+env["ENV"].update(x for x in os.environ.items())

 #rootpath = env['ROOTPATH'] = os.path.abspath('.')
 #env.Append(CPPPATH=os.path.join('#', "hammer"))
@abiggerhammer
Copy link
Member

I am way behind on issues, and am very sorry about that.

Anyway, git blame says that line was my fault. Mind filing a PR for it? I know it's a one-liner, but the record should still show your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants