Browse Source

olsr: fix build

Pass TARGET_CONFIGURE_OPTS in the environment rather than as make arguments,
so the olsr build system can append to CFLAGS / LDFLAGS - Otherwise build
fails when the wrong linker flags are used to create the plugin .so's.

Also pass ARCH, so the olsr build system choses the right libdir / PIC
settings for the target, rather than for the host.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 14 năm trước cách đây
mục cha
commit
a1c787ea6a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      package/olsr/olsr.mk

+ 1 - 1
package/olsr/olsr.mk

@@ -16,7 +16,7 @@ OLSR_PLUGINS=dot_draw dyn_gw secure
 OLSR_TARGET_PLUGIN=usr/lib/
 
 define OLSR_BUILD_CMDS
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) olsrd $(OLSR_PLUGINS)
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) ARCH=$(KERNEL_ARCH) -C $(@D) olsrd $(OLSR_PLUGINS)
 endef
 
 define OLSR_INSTALL_TARGET_CMDS