scons adds option -KPIC also for gcc/g++ on platform solarisx86
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <trinity-5788f6bf-7d12-4a32-9a01-6599a46efeab-1621586967976@3c-app-gmx-bap47> |
Dear scons maintainer, I didn't find any workarounds or hints or bug entires for scons on stackoverflow or openhub or somewhere else regarding the problem that scons adds -KPIC compiler option even for gcc/g++ compiler which leads to the error with message "g++: error: unrecognized command line option '-KPIC' -KPIC was introduced with scons 0.96.91 and is valid for sun compiler suncc, but not for gcc. My flags are: env['CCFLAGS'] += ' -m64 -DSOLARIS -D_M_IX86 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -mfpmath=387 -fPIC -std=c99 ' env['CXXFLAGS'] += '' env['LINKFLAGS'] = ' -lsocket -m64 -fPIC ' env['SHLINKFLAGS'] = ' -shared -m64 ' env['SHCXXFLAGS'] = ' -shared -m64 ' env['SHCXX'] = ' g++ ' Platform is solaris x86 with Oracle Corporation SunOS 5.10 Generic Patch January 2005 gcc 5.5.0 scons v2.5.1.rel_2.5.1 ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.1514 Please let me know if there is any workaround. Best regards BlackFury99 _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users