https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119243

            Bug ID: 119243
           Summary: Make-lang.in hardcodes $(prefix)/lib64
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---

I just noticed that gcc/cobol/Make-lang.in makes invalid assumptions about the
lib directory layout:

# Note further that we are producing only a 64-bit version of libgcobol.so, so
# it is safe to hard-code the lib64 location.  This obviously has to match the
# installation code in libgcobol/Makefile.in
# 
CPPFLAGS =                                      \
[...]
 -DEXEC_LIB=\"$(prefix)/lib64\"         \

lib64 is a Linux thing.  The (multilib) layout of lib directories is highly
target specific and must not be hardcoded here.  E.g. Solaris uses
$(prefix)/lib/amd64 resp. $(prefix)/lib/sparcv9.

Reply via email to