Skip to content

Commit

Permalink
Merge branch 'fix_ld_pie_error' into 'master'
Browse files Browse the repository at this point in the history
[sb2] Don't pass -r using -Wl,-r

See merge request mer-core/scratchbox2!35
  • Loading branch information
Matti Kosola committed Oct 28, 2020
2 parents 1e5ced4 + fc3eefe commit 395a762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scratchbox2/llbuild/Makefile.include
Expand Up @@ -82,12 +82,12 @@ endif
%.a::
$(MKOUTPUTDIR)
$(P)ARCHIVE
$(Q)$(CC) $(LDFLAGS) -Wl,-r -nostdlib -nodefaultlibs -nostartfiles -o $@ $^
$(Q)$(CC) $(LDFLAGS) -r -nostdlib -nodefaultlibs -nostartfiles -o $@ $^

built-in.o:: %.o
$(MKOUTPUTDIR)
$(P)BUILTIN
$(Q)$(CC) -Wl,-r -nostdlib -nodefaultlibs -nostartfiles -o $@ $^
$(Q)$(CC) -r -nostdlib -nodefaultlibs -nostartfiles -o $@ $^

%.o:: %.S
$(MKOUTPUTDIR)
Expand Down

0 comments on commit 395a762

Please sign in to comment.