octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60413] build: sed expression problems when pr


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #60413] build: sed expression problems when prefix is empty or slash
Date: Sat, 17 Apr 2021 20:35:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36

Follow-up Comment #1, bug #60413 (project octave):

As another odd example showing how these substitutions can go very wrong,
build with './configure --prefix=/u', yes a new top-level directory named
"/u". And let's add CPPFLAGS=-I/usr/local/include and LDFLAGS=-L/usr/local/lib
into the mix.

The resulting libinterp/build-env.cc has:


    const char *CPPFLAGS = "-I${prefix}sr/local/include";
    const char *FLIBS = " -L${prefix}sr/local/lib
-L${prefix}sr/lib/gcc/x86_64-linux-gnu/10
-L${prefix}sr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu
-L${prefix}sr/lib/gcc/x86_64-linux-gnu/10/../../../../lib
-L/lib/x86_64-linux-gnu -L/lib/../lib -L${prefix}sr/lib/x86_64-linux-gnu
-L${prefix}sr/lib/../lib -L${prefix}sr/lib/gcc/x86_64-linux-gnu/10/../../..
-lgfortran -lm -lquadmath";
    const char *LDFLAGS = "-L${prefix}sr/local/lib";


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60413>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]