[kyukhin/gomp4-offload] DESTDIR issues
Wed Sep 17 14:04:00 GMT 2014
Il 17/09/2014 15:31, Jakub Jelinek ha scritto:
> It seems building of the host compiler requires the offloading compiler
> to be installed directly in the prefix, which is something really
> undesirable e.g. for distro builds where things are installed with
> non-empty $(DESTDIR).
Is the offloading compiler built together with GCC or previously? If
the latter, what's the difference between the offloading compiler and
say gmp? Setting the LD_LIBRARY_PATH would be the responsibility of
whoever builds GCC; it would be the same here for the COMPILER_PATH.
> Either we can do something like the following patch, i.e. look
> at -I$(DESTDIR)/$(target_dir)/include first and fall back to
> -I$(target_dir)/include, which fixed the build for me, but unfortunately
> it violates GNU conventions:
> "DESTDIR should be supported only in the install* and uninstall* targets, as
> those are the only targets where it is useful."
> while this patch uses it during build.
I agree with the coding standards. The right way to do it could be a
configure option, if it's really not possible to leave it to whoever
More information about the Gcc-patches