Override C.Link for specific target(s)?

Added by Erik Purins almost 3 years ago

Hey there,

I could use some help figuring out how to make the osx linker's command line shorter.

https://stackoverflow.com/questions/27995300/jamplus-link-command-line-too-long-for-osx

I succeeded ok, and can link the one target I was having trouble with, but when I override C.Link globally like this, some other targets break! I'm pretty sure there must be a better way to fix this, since I'm just figuring out how to use Jamplus.

Is there some jamplus syntax I can use to override C.Link on a single named target?

-e


Replies (1)

RE: Override C.Link for specific target(s)? - Added by Joshua Jensen almost 3 years ago

My apologies for the late response. I do not seem to be receiving emails for forum posts. I'll look into that soon.

This is from the jamplus3 branch. Does it do what you want?

actions C.macosx.clang.Link {
    $(C.LINK:C) $(LINKFLAGS) -o $(<[1]:C) -filelist ^^^($(>:J=$(NEWLINE))) $(NEEDLIBS:TC) $(LINKLIBS:TC)
}

Otherwise, I'm unsure what you mean by overriding C.Link on a single named target.

(1-1/1)