title: compiler error gcc-8: error: unrecognized command line option '-no-pie'
body: <p>I am trying to compile using this makefile but got this error. I can compile using school's linux computer with gcc 6.3. I tried using my MacOS mojave using a few different version of gcc from homebrew (gcc-8, gcc-4.9, gcc-6) but I get this error consistently. </p>
  
  <pre><code>CC = gcc-8
  OPT = -O3 -g
  LIBS = -lz -lcvp -lz
  FLAGS = -std=c++11 -L. $(LIBS) $(OPT) -no-pie
  
  
  OBJ = myprogram.o
  DEPS = cvp.h myprogram.h
  
  
  all: cvp
  
  cvp: $(OBJ)
      $(CC) $(FLAGS) -o $@ $^
  
  %.o: %.cc $(DEPS)
      $(CC) $(FLAGS) -c -o $@ $&lt;
  
  .PHONY: clean
  
  clean:
      rm -f *.o cvp
  </code></pre>