Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Additional Library Directories on Linker property page is a trap #29

@MarkCallow

Description

@MarkCallow

The emcc linker property page contains an Additional Library Directories property, just like the Win32 link property page. Unfortunately this property is not useful with the emcc linker (gcc link) because -L directives (which is how these directories are passed) are only used to search for libraries specified with -l directives. vs-tool does not use -l. It simply appends the libraries specified in the "Additional Dependencies" property to the end of the link command. This is the same way the corresponding Win32 properties are handled but in that case the linker searches the /L directories.

I propose that vs-tool specify the Additional Dependencies using -l directives. This does mean the library name will have to be changed, removing any 'lib' prefix and '.lib' extension. The extension likely has to be changed to .bc anyway so this is probably not too big an issue.

Currently you have to change the library name anyway to add its relative path from the MSVS project file otherwise it will not be found in an Emscripten config generated from a Win32 config that uses Additional Library Directories.

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