GithubHelp home page GithubHelp logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
The Makefile currently passes LDFLAGS at the end of the $(CC) line, so I do not 
see 
the problem in the context of that doc? 

Your patch just renames LDFLAGS to LIBS.

Original comment by [email protected] on 23 Mar 2010 at 7:20

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
I mean, you could just as easily keep LDFLAGS named as-is, and include env 
ADD_LDFLAGS 
for your needs, but I don't understand what this is trying to accomplish - if 
something distro-specific, why not just apply a patch to add the options you 
want?

Original comment by [email protected] on 23 Mar 2010 at 7:23

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
[And for what it's worth, I'm pretty sure that --as-needed makes absolutely no 
difference for skipfish, as it does not come with any elaborate linking 
dependencies.]

Original comment by [email protected] on 23 Mar 2010 at 7:25

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
The general part:

It makes sense to respect standard environment variables and when you can add 
+= and
?= operators to Makefile, it's also easy... there's no need to "invent" more 
names
for them.

The distro specific part:

The LDFLAGS come from the /etc/make.conf gentoo-distro specific file to the 
package
manager (Portage, in this case) and gets exported to environment for 
build-time. So
when I have LDFLAGS="-Wl,--as-needed" in /etc/make.conf, I expect every single
package to use it.

That said, there's likely not much gain for you as upstream to add this feature 
to
skipfish, but I'm asking you still do, just to make it compatible with Gentoo's
standards and we can easily include your software :)

Thanks!

Original comment by [email protected] on 23 Mar 2010 at 9:45

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Just some example,

http://sources.redhat.com/automake/automake.html#Standard-Configuration-Variable
s

e.g. -D flags go to CPPFLAGS += -Dsomething
optimization flags for CC go as CFLAGS += -O3 -g -ggdb
extra LDFLAGS go as LDFLAGS += -Wl,-something
default CC goes as something like CC ?= gcc

Then

$(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(objects-variable) $(libs-variable)

Original comment by [email protected] on 23 Mar 2010 at 9:52

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Some references to similar fixing,

http://blog.flameeyes.eu/2008/10/15/fixing-cflags-ldflags-handling-with-a-single
-boilerplate-makefile
http://www.mail-archive.com/[email protected]/msg19082.html

Original comment by [email protected] on 23 Mar 2010 at 9:58

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Ok, thanks for the explanation. The upcoming version will honor external 
CFLAGS, 
LDFLAGS, just pending some other bugfixes.

Original comment by [email protected] on 23 Mar 2010 at 5:03

  • Changed state: Fixed

from skipfish.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
thanks :)

meanwhile, i've packaged skipfish

http://packages.gentoo.org/package/dev-util/skipfish

Original comment by [email protected] on 23 Mar 2010 at 6:39

from skipfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.