title: Set up flags of library in Makefile
body: <p>I'm compiling with library mylib.so, in which there are several flags to be set up, flagA and flagB. The following is my current Makefile:</p>
  
  <pre><code>MYLIBS=$(realpath ../lib/mylib.so)
  MYLIBS_OPTS=-mllvm -flagA=true -mllvm -flagB=true
  MYCXX=$(realpath ../bin/clang++) -Xclang++ $(MYLIBS) $(MYLIBS_OPTS)
  CXXFLAGS = -Wall -ggdb
  </code></pre>
  
  <p>Then I compile the library with my code by</p>
  
  <pre><code>mycode: mycode.c
      $(MYCXX) $(CXXFLAGS) -c -o $@ $^
  </code></pre>
  
  <p>But when I run <code>make mycode</code> in terminal, I got the following errors:</p>
  
  <pre><code>clang (LLVM option parsing): Unknown command line argument '-flagA=true'.  Try: 'clang (LLVM option parsing) -help'
  clang (LLVM option parsing): Unknown command line argument '-flagB=true'.  Try: 'clang (LLVM option parsing) -help'
  </code></pre>
  
  <p>I think I might have missed something. Really appreciate any help!</p>