this "resources" is a bit ambiguous for me.
do you mean flash size (basically drive size) or RAM size?
BTW can I compile on my linux machine(x64) for openwrt ,an application that has a makefile but it is a big beast in sources and config files (like lantern proxy as I mentioned).
the openwrt uses musl but when I want to compile lantern for arm the tools are only based on gcc (I think , I am not a programmer, I just tinker with config till the errors go away
)
like arm-linux-gnueabihf-g++
and this is the part of makefile that is for the arm arch:
linux-arm: $(RESOURCES_DOT_GO) $(SOURCES)
@source setenv.bash && \
HEADLESS=1 && \
$(call build-tags) && \
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -a -o lantern_linux_arm -tags="$$BUILD_TAGS" -ldflags="$(LDFLAGS) $$EXTRA_LDFLAGS -linkmode internal -extldflags \"-static\"" github.com/getlantern/flashlight/main
and gnueabihf was gnueabil I think, I changed it to mine on archlinux.
EDIT:
I think I solved it.
in arch there was a "arm-linux-gnueabihf-musl " already in AUR packages.
installed that and change the CC and CXX from their value to arm-linux-gnueabihf-musl crossed my fingures recompiled and wow it worked.at least it gave a bianry that its interpreter is /lib/ld-musl-armhf.so.1
file ./lantern_linux_arm
./lantern_linux_arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-armhf.so.1, stripped
so I think it is gonna work on the musl version of openwrt(or is it LEDE now?).
BTW the size issue is ram or space?
(Last edited by rezad1393 on 3 Dec 2016, 20:22)