This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233744 - Dynamic C library build adds the -fPIC flag for assembly files (".s") -- 'as' throws error
Summary: Dynamic C library build adds the -fPIC flag for assembly files (".s") -- 'as'...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-01 02:34 UTC by kshalle
Modified: 2013-08-11 10:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kshalle 2013-08-01 02:34:40 UTC
I created a C/C++ Dynamic Library project, which contains assembly ".s" files in addition to C code ".c" files.  When I try to build the project, I get this output:

as  -g -fPIC  -o build/Debug/GNU-Linux-x86/_ext/1353218099/PR__primitives_asm.o ../HW_Dependent_Primitives/PR__primitives_asm.s
as: unrecognized option '-PIC'

To check this, I opened a second project, with the same source code, and added a dummy "main.c" -- that builds without error and runs without bugs.
Comment 1 Alexander Simon 2013-08-11 10:12:22 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/fc2ff989fcb8