Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347498

Summary: Restore defaults for GCC toolchain resets linker options to shared library settings
Product: [Tools] CDT Reporter: Eugene Ostroukhov <eostroukhov>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: CLOSED DUPLICATE QA Contact: Chris Recoskie <recoskie>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Eugene Ostroukhov CLA 2011-05-27 14:22:51 EDT
Build Identifier: CVS

Managed build tries to produce shared library when I restore toolchain options to default values.

Reproducible: Always

Steps to Reproduce:
1. Create "Hello, world" C++ project.
2. Build the project. Verify that executable is built as expected.
3. Open project properties, "C/C++ Build"/Settings.
4. Click the "Restore Defaults" in the bottom of the page. Click "Ok"
5. In the tree find "GCC C++ Linker"/"Shared Library Settings" node. Verify the "Shared (-shared)" option is checked.

Full rebuild will now attempt building shared library instead of executable.
Comment 1 Eugene Ostroukhov CLA 2011-12-16 17:06:03 EST

*** This bug has been marked as a duplicate of bug 366519 ***