Skip to content

EXTRA_LINKER_FLAGS are OTHER_LIBTOOLFLAGS in Xcode Project #768

@dacrome

Description

@dacrome

Hi @McMartin,

when I generate a Xcode project with Projucer, the Extra Linker Flags are added as OTHER_LDFLAGS but when I generate a Xcode project with FRUT the EXTRA_LINKER_FLAGS are added as OTHER_LIBTOOLFLAGS. When I build with Xcode I get the following error:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character W' in: -Wl`

I can fix that by changing the OTHER_LIBTOOLFLAGS to OTHER_LDFLAGS.

Example

Flags I set in Projucer:

projucer_linker_flags

Projucer generated project.pbxproj:

OTHER_LDFLAGS = "-lz -Wl -ld_classic";

But no OTHER_LIBTOOLFLAGS

FRUT/CMake generated project.pbxproj:

OTHER_LIBTOOLFLAGS = (" -lz -Wl -ld_classic");

But no OTHER_LDFLAGS

Maybe I have to change something in Xcode when built with FRUT/CMake generated Xcode project files, but I think the linker flags should be added as OTHER_LDFLAGS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions