diff --git a/opts.mk b/opts.mk index 53903ad..90c7af8 100644 --- a/opts.mk +++ b/opts.mk @@ -28,7 +28,8 @@ $(eval $(call FIXZERODEPS,$(shell find deps/ -size 0 -printf "%P "))) FIXINC ?= -isystem /usr/include/pd/fixinclude CPPFLAGS = \ - $(FIXINC) -D_GNU_SOURCE=1 $(CPPDEFS) -Wundef + $(FIXINC) -D_GNU_SOURCE=1 -DPACKAGE='"phantom"' \ + -DPACKAGE_VERSION='"$(shell sed -n -e '1s/.*(\(.*\)).*/\1/p' debian/changelog)"' $(CPPDEFS) -Wundef DEPS = \ -MD -MF deps/$(subst /,%,$(@)).d diff --git a/test/bq/align.C b/test/bq/align.C index 9f1f8de..19ca7f6 100644 --- a/test/bq/align.C +++ b/test/bq/align.C @@ -2,6 +2,8 @@ * compile it with '-O2' to see the effect */ +#if defined(__x86_64__) + #ifndef __OPTIMIZE__ #error not interested without otimisation #endif @@ -58,3 +60,11 @@ extern "C" int main() { return 0; } + +#else + +extern "C" int main() { + return 0; +} + +#endif