Message ID | 20170704140404.4098-7-arnout@mind.be |
---|---|
State | Accepted |
Headers | show |
Hi Arnout, Le 04/07/2017 à 16:03, Arnout Vandecappelle (Essensium/Mind) a écrit : > Now $(HOST_DIR)/lib and $(HOST_DIR)/usr/lib are the same directory, it > doesn't make sense to pass both to LDFLAGS. > > Also use $(HOST_DIR)/lib instead of $(HOST_DIR)/usr/lib for the RPATH. > > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Romain Naour <romain.naour@smile.fr> Best regards, Romain > --- > package/Makefile.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/Makefile.in b/package/Makefile.in > index 6b88ac4feb..25f1997fe6 100644 > --- a/package/Makefile.in > +++ b/package/Makefile.in > @@ -220,7 +220,7 @@ HOST_CPPFLAGS = -I$(HOST_DIR)/usr/include > HOST_CFLAGS ?= -O2 > HOST_CFLAGS += $(HOST_CPPFLAGS) > HOST_CXXFLAGS += $(HOST_CFLAGS) > -HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib > +HOST_LDFLAGS += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib > > # host-intltool should be executed with the system perl, so we save > # the path to the system perl, before a host-perl built by Buildroot >
diff --git a/package/Makefile.in b/package/Makefile.in index 6b88ac4feb..25f1997fe6 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -220,7 +220,7 @@ HOST_CPPFLAGS = -I$(HOST_DIR)/usr/include HOST_CFLAGS ?= -O2 HOST_CFLAGS += $(HOST_CPPFLAGS) HOST_CXXFLAGS += $(HOST_CFLAGS) -HOST_LDFLAGS += -L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib -Wl,-rpath,$(HOST_DIR)/usr/lib +HOST_LDFLAGS += -L$(HOST_DIR)/lib -Wl,-rpath,$(HOST_DIR)/lib # host-intltool should be executed with the system perl, so we save # the path to the system perl, before a host-perl built by Buildroot
Now $(HOST_DIR)/lib and $(HOST_DIR)/usr/lib are the same directory, it doesn't make sense to pass both to LDFLAGS. Also use $(HOST_DIR)/lib instead of $(HOST_DIR)/usr/lib for the RPATH. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> --- package/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)