Skip to content

🔧 Add LDFLAGS after object files to Makefile#2

Open
jwir3 wants to merge 1 commit intothierry-f-78:masterfrom
jwir3:jwir3/fix-issues-with-ldflags
Open

🔧 Add LDFLAGS after object files to Makefile#2
jwir3 wants to merge 1 commit intothierry-f-78:masterfrom
jwir3:jwir3/fix-issues-with-ldflags

Conversation

@jwir3
Copy link

@jwir3 jwir3 commented Nov 30, 2019

I was getting an issue where ld could not find a reference to the cairo
functions. It was caused by the -lcairo flag being passed BEFORE the
main.o, pla.o, etc... to g++.

I was getting an issue where ld could not find a reference to the cairo
functions. It was caused by the -lcairo flag being passed BEFORE the
main.o, pla.o, etc... to g++.
@ghost
Copy link

ghost commented Dec 7, 2019

Hi. Sory for the delay, I do not receive notification for pull requests.

I think that the main error is not the position of LDFLAGS, but the abscence of LDLIBS.

Makefile use this command:

$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

I suggest the addition of the variable LDLIBS

@jwir3
Copy link
Author

jwir3 commented Dec 8, 2019 via email

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.

1 participant