Skip to content

Fix correct placement of libraries in the linker command line.#1

Open
udif wants to merge 1 commit into
agordon:masterfrom
udif:pr_fix_ld
Open

Fix correct placement of libraries in the linker command line.#1
udif wants to merge 1 commit into
agordon:masterfrom
udif:pr_fix_ld

Conversation

@udif

@udif udif commented Mar 1, 2022

Copy link
Copy Markdown

The original Makefile used LDFLAGS to specify link linbaries.
This caused the libraries to be specified BEFORE the object files referencing them, causing link failures.
By using LDLIBS, all the libraries are specified AFTER the object files, correcting the issue.

Tested on Ubuntu 20.04 LTS

@shalnoff

Copy link
Copy Markdown

true

@Kuchiriel

Copy link
Copy Markdown

Please, accept this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants