R
ryanvade
Guest
Hello,
I am attempting to make a portable python for Linux, there is already a version for Windows. So, to do this I have to A.) build static libraries. and B.) install to flash.
This is how I configured...
../configure --prefix=/media/ryanvade/"4 GB Flash"/Portable-Python-3.4 LDFLAGS="-static -static-libgcc" CPPFLAGS="-static"
I then added *static* to Modules/Setup
u
uncommented all the modules I wanted installed and tried to build. I am now getting this:
Which appears to be an issue with gcc 4.7. Any ideas?
I am attempting to make a portable python for Linux, there is already a version for Windows. So, to do this I have to A.) build static libraries. and B.) install to flash.
This is how I configured...
../configure --prefix=/media/ryanvade/"4 GB Flash"/Portable-Python-3.4 LDFLAGS="-static -static-libgcc" CPPFLAGS="-static"
I then added *static* to Modules/Setup
u
uncommented all the modules I wanted installed and tried to build. I am now getting this:
Code:
/build/Python-3.4.0a2.portable/build/../Modules/socketmodule.c:4588: warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `tan' with pointer equality in `/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libm.a(s_tan.o)' cannot be used when making an executable; recompile with -fPIE and relink with -pie
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make: *** [python] Error 1
make: *** Waiting for unfinished jobs.