forked from phuang/ibus
-
Notifications
You must be signed in to change notification settings - Fork 199
Improve CFLAGS/LDFLAGS for release builds #2682
Copy link
Copy link
Closed
Description
There are some easy performance improvements to be had in release builds if ibus does what we do in the GNOME stack for GLib-based applications and libraries. Including:
-Wl,-Bsymbolicand-fno-pltfor libibus so you can call functions without extra indirection- Use
-Wl,-z,relroand-Wl,-z,nowhardening options -DG_DISABLE_ASSERTso assertions compile out of stable builds-DG_DISABLE_CAST_CHECKSto avoid costly type system lookups in casts
Would this be desired by upstream? I can put together a configure.ac patch for it, though I was curious how it might be gated (e.g. --enable-release or something like that?)
Reactions are currently unavailable