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 270449 - Wrong Makefile generation for the C++ project
Summary: Wrong Makefile generation for the C++ project
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-21 01:40 UTC by ak88
Modified: 2017-04-24 14:17 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 ak88 2017-04-21 01:40:11 UTC
Since netbeans supports different C++ compilers I tried it with Emscripten (1.37) compiler.

By default IDE generates build target for my lib like:
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/my-common-lib.a: ${OBJECTFILES}
	${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}
	${RM} ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/my-common-lib.a
	${AR} -r ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/my-common-lib.a ${OBJECTFILES}

but Emscripten llvw-ar does not support option -r which is added by default. And after successful compilation I get an error:

llvm-ar: Unknown command line argument '-r'.

I have no possibility to remove this option, because file generates automatically. 

Need to remove this default option '-r' or make it configurable, but not default.