Ok I got it!
For anybody wondering: In Projucer go to your exporter tab (not Debug/Release but the header above which says “Linux Makefile”) where you can set “extra compiler flags”.
For GCC the flag to not use AVX2 is the flag to use anything up to AVX which is
-mavx
