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

Setting CFLAGS in KERL_CONFIGURE_OPTIONS #49

Closed
jj1bdx opened this issue Sep 26, 2013 · 1 comment
Closed

Setting CFLAGS in KERL_CONFIGURE_OPTIONS #49

jj1bdx opened this issue Sep 26, 2013 · 1 comment

Comments

@jj1bdx
Copy link
Contributor

jj1bdx commented Sep 26, 2013

I want to set a CFLAGS (env) parameter in KERL_CONFIGURE_OPTIONS inside .kerlrc with the value as: CFLAGS="-g -C0 -fstack-protector" (Note that CFLAGS value includes whitespaces); could this be possible?

I guess this is rather a shell scripting issue (of source .kerlrc), but I'd be glad if I can obtain a hint. Thanks in advance.

@jj1bdx
Copy link
Contributor Author

jj1bdx commented Sep 26, 2013

Using export command inside .kerlrc to set the environment variable for running the builds solved the issue.
For example:

export CC=clang CXX=clang CFLAGS="-g -O0 -fstack-protector" LDFLAGS="-fstack-protector"
KERL_CONFIGURE_OPTIONS="--disable-native-libs --with-dynamic-trace=dtrace --with-ssl=/usr/local --with-javac --disable-hipe --enable-kernel-poll --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config --without-odbc --enable-threads --enable-sctp --enable-smp-support"

Note well that this workaround will not solve the problem if any whitespace is included in the double-dashed parameters of ./Configure.

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

1 participant