Lunar can use: LDFLAGS="$LDFLAGS -Wl,-O1" but how about adding: LDFLAGS="$LDFLAGS -Wl,-Os" I use this set of flags and works great. BTW: I think --as-needed flag should be removed - it makes more bad than good when used. zbiggy