# Build
##############################
%build
+# Disable watermarking (Annobin) plugin
+CFLAGS=$(echo $CFLAGS | sed -e 's:-fplugin=.*annobin\.so::' | sed -e 's/ */ /g')
+CXXFLAGS=$(echo $CXXFLAGS | sed -e 's:-fplugin=.*annobin\.so::' | sed -e 's/ */ /g')
+LDFLAGS=$(echo $LDFLAGS | sed -e 's:-fplugin=.*annobin\.so::' | sed -e 's/ */ /g')
+
PREFIX+="/usr"
CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -lttrace -Wl,-Bsymbolic-functions "