Build Question: How to Add -Wl, --option Before Objects In

Cyd Haselton chaselton at
Sat Nov 1 19:47:16 CET 2014

On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily <nad at> wrote:
> In article
> <CAHu5PrbYMUzfs1AZYzPaN__51h7Q=4D5bfjM2EQOfx90OKxxNQ at>,
>  Cyd Haselton <chaselton at> wrote:
>> So, after trying various ways to add that flag before lpython in
>>, I stripped all --allow-shlib-undefined
>> --no-allow-shlib-undefined feom the Makefile, ran make clean, and
>> make.
>> I still get the following error:
>> Modules/python.o \
>>                 -lc -ldl -lm  -L. -lpython2.7   -lm
>> ./ undefined reference to `sincos'
>> collect2: error: ld returned 1 exit status
>> make: *** [python] Error 1
> I don't understand why you are seeing that problem *unless" you might be
> running into this issue that I found by searching for "sincos Android":
> That looks awfully suspicious.  If it isn't that, I don't know what to
> tell you.  You could open an issue on the Python bug tracker
> ( but we don't officially support Android so I doubt
> that will help much.  If you haven't already, you might try asking on
> some Android forums; I know other oddities of building things on Android
> have been reported.
> Good luck!
> --
>  Ned Deily,
>  nad at
> --

Hammer -> Head -> Nail.

Sure enough, nm -D shows that sincos is NOT available in that
library on my Android device. Now to figure out what to do about it.

Nice find!


More information about the Python-list mailing list