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

            Bug ID: 92699
           Summary: Slash should be removed from C/C++ plugin install
                    destination
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: brechtsanders at users dot sourceforge.net
  Target Milestone: ---

I was trying to GCC with the --enable-plugin parameter on Windows with
MinGW-w64.
There was an error in the installation which I was able to solve by fixing
gcc/c/Make-lang.in and gcc/cp/Make-lang.in with this command:
sed -i.bak -e "s?\(\$(DESTDIR)\)/\(\$(plugin_resourcesdir)\)?\1\2?"
gcc/c/Make-lang.in gcc/cp/Make-lang.in

Basically the slash in $(DESTDIR)/$(plugin_resourcesdir) should be removed, so
this reads as $(DESTDIR)$(plugin_resourcesdir), which is how it was done in the
line above it that makes the directory if needed.
Otherwise the path starts with 2 slashes, which on Windows would make it a UNC
path instead of a local path. I can image this probably worked on almost any
other OS.

Reply via email to