Advertisement
eastpole

pastebincl compile error on Mac OS X 10.9.5

Feb 9th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. Problem with pastebincl
  2.  
  3. On Mac OS X 10.9.5
  4.  
  5. # make
  6. [...] clang: error: -l curl: 'linker' input unused
  7. make: *** [CurlPost.o] Error 1
  8.  
  9.  
  10. Fixable at cost of losing warnings etc.: http://cwchen123.tw/utilities/2014/08/07/pastebincl/
  11.  
  12. ^^ quoting Mr Chen,
  13.  
  14. modify src/Makefile and delete $(CXXLIBS) in the following section:
  15.  
  16. # before modification...
  17. ConfigRead.o: ConfigRead.cpp
  18.     $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\"
  19.  
  20. %.o: %.cpp
  21.     $(CXX) $(CXXLIBS) -c $< $(CXXFLAGS) -o $@
  22.  
  23. # after modification...
  24. ConfigRead.o: ConfigRead.cpp
  25.     $(CXX) -c $< $(CXXFLAGS) -o $@ -DENCODING_KEY=\"${ENC_KEY}\"
  26.  
  27. %.o: %.cpp
  28.     $(CXX) -c $< $(CXXFLAGS) -o $@
  29.  
  30.  
  31.  
  32. # In same file, delete -Werror in CXXFLAGS:
  33.  
  34. # before modification...
  35. CXXFLAGS=-Wall -Werror -O2
  36.  
  37. # after modification...
  38. CXXFLAGS=-Wall -O2
  39.  
  40. # Can now make and make install.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement