use the cross-compiler to build additional packages
[openwrt.git] / openwrt / target / linux / package / openswan / Makefile
index 0e44690..fbfd7c9 100644 (file)
@@ -28,10 +28,11 @@ $(PKG_BUILD_DIR)/.built:
                $(TARGET_CONFIGURE_OPTS) \
                KERNELSRC="$(KERNEL_DIR)" \
                ARCH="$(LINUX_KARCH)" \
+               CROSS_COMPILE="$(TARGET_CROSS)" \
                USERCOMPILE="$(FLAGS)" \
                module
 
 $(IPKG_KMOD_OPENSWAN):
        mkdir -p $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)
-       cp $(PKG_BUILD_DIR)/modobj/ipsec.*o $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)/
+       cp -fpR $(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX) $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)/
        $(IPKG_BUILD) $(IDIR_KMOD_OPENSWAN) $(PACKAGE_DIR)
This page took 0.019635 seconds and 4 git commands to generate.