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

Fix compiler error when building static libraries #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix compiler error when building static libraries #1

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 16, 2016

No description provided.

@cahirwpz
Copy link
Member

cahirwpz commented Aug 1, 2016

Umm... how to reproduce a bug to show this patch is necessary ?

@ghost
Copy link
Author

ghost commented Aug 1, 2016

When using m68k-amigaos-ar neither ixemul nor libnix linking will be used, and both switch are turned off.

Here is an example of such a usage:

git clone -b master https://github.com/llsth/amath.git
sh configure -m68000 m68k-amigaos- -noixemul
make

@cahirwpz
Copy link
Member

cahirwpz commented Aug 2, 2016

When you link a static library neither libnix nor ixemul are used. This option is taken into account only when you link an executable file. When I modified configure script and added -noixemul to CC variable the build process went ok. Please consider if that's something you want.

@ghost
Copy link
Author

ghost commented Aug 2, 2016

@cahirwpz There is no reason to specify either options if all you want to do is to create a static library from code which includes stddef.h. Otherwise a static library produced this way would require to be linked to either libnix or ixemul.

@cahirwpz cahirwpz force-pushed the master branch 8 times, most recently from 1c33670 to 66cec84 Compare October 18, 2016 12:51
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

Successfully merging this pull request may close these issues.

2 participants