modules/admin-full: reorder compiler flags for luci-bwc, fixes build on Ubuntu 11.x
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Mar 2012 21:10:18 +0000 (21:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Mar 2012 21:10:18 +0000 (21:10 +0000)
modules/admin-full/Makefile

index 77335c399b7a02f8e4062a11a36528149df3ba95..819d13f33f3c146ac2fdd7451cb9fb0bc4e5a139 100644 (file)
@@ -11,7 +11,7 @@ BWC_OBJ        = src/luci-bwc.o
        $(COMPILE) $(BWC_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
 
 compile: build-clean $(BWC_OBJ)
-       $(LINK) $(BWC_LDFLAGS) -o src/$(BWC_BIN) $(BWC_OBJ)
+       $(LINK) -o src/$(BWC_BIN) $(BWC_OBJ) $(BWC_LDFLAGS)
        mkdir -p dist/usr/bin
        cp src/$(BWC_BIN) dist/usr/bin/$(BWC_BIN)