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

Can we remove "-fdata-sections -ffunction-sections" #18

Closed
fuji246 opened this issue May 4, 2014 · 1 comment
Closed

Can we remove "-fdata-sections -ffunction-sections" #18

fuji246 opened this issue May 4, 2014 · 1 comment

Comments

@fuji246
Copy link

fuji246 commented May 4, 2014

See here: http://sourceforge.net/p/log4cplus/mailman/message/31286406/

What steps will reproduce the problem?

  1. Compile logcplus 1.2 in Andriod using cmake
  2. Choose the Release version(Debug works fine)
  3. encounter error log4cplus::internal::__emutls_t._ZN9log4cplus8internal3ptdE causes a section type conflict

What is the expected output? What do you see instead?

Should works fine for release version.

What version of the product are you using? On what operating system?

I'm using mac to cross compile the log4cplus for android, and ndk using is android-ndk-r9d, toolchain is arm-linux-androideabi-g++ (GCC) 4.6 20120106 (prerelease)

Please provide any additional information below.

@taka-no-me
Copy link
Owner

The toolchain can be stopped from adding these flags by setting ANDROID_FUNCTION_LEVEL_LINKING to OFF. The option is there for a long already but it turns that it was broken. The latest version should be Ok.

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