Coder Social home page Coder Social logo

Comments (8)

infrastation avatar infrastation commented on May 24, 2024

The reported issue is still the case (I cannot tell if this is not the intended behaviour though).

from tcpdump.

fxlb avatar fxlb commented on May 24, 2024

Should we close this issue ?
Version 3.7.2 is rather old (2003).

from tcpdump.

guyharris avatar guyharris commented on May 24, 2024

It still seems to work that way - I built with --prefix=/tmp/install and it neither used -I /tmp/install/include nor -L /tmp/install/lib.

from tcpdump.

guyharris avatar guyharris commented on May 24, 2024

For what it's worth, the GNU Coding Standards say, in the Variables for Installation Directories section:

Running ‘make install’ with a different value of prefix from the one used to build the program should not recompile the program.

If the intent is that prefix controls the location in which to search for header files and libraries, that seems to me to be inconsistent with "changing prefix shouldn't cause the program to be recompiled".

In addition, in the "Optional Features" section of the autoconf manual, it says

For packages that use the X Window System, configure can usually find the X include and library files automatically, but if it doesn't, you can use the configure options --x-includes=dir and --x-libraries=dir to specify their locations.

which also suggests that --prefix= may not be the way to say where to search for headers and libraries.

And if a particular package required by a program is installed in an unusual place - a place other than where the program itself should be installed - having --prefix affect where the script and the build process search for header files and libraries won't help.

So I'm not sure that changing the script so that --prefix affects where to search for libraries and headers is the right thing to do. Setting CFLAGS and LDFLAGS environment variables, with CFLAGS having a -I flag and LDFLAGS having a -L flag, when running the configure script will cause header files and libraries to be searched for in the specified directories.

from tcpdump.

mcr avatar mcr commented on May 24, 2024

from tcpdump.

fxlb avatar fxlb commented on May 24, 2024

So I'm not sure that changing the script so that --prefix affects where to search for libraries and headers is the right thing to do. Setting CFLAGS and LDFLAGS environment variables, with CFLAGS having a -I flag and LDFLAGS having a -L flag, when running the configure script will cause header files and libraries to be searched for in the specified directories.

Totally agree.

from tcpdump.

guyharris avatar guyharris commented on May 24, 2024

Close it, then?

from tcpdump.

fxlb avatar fxlb commented on May 24, 2024

Yes, done.

from tcpdump.

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.