0001-Fix-build-of-shared-library-on-architectures-needing.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Fri, 27 Nov 2015 15:17:02 +0100
  4. Subject: [PATCH] Fix build of shared library on architectures needing -fPIC
  5. Certain architectures, like Sparc and Sparc64 require objects to be
  6. built with -fPIC (and not just -fpic) to be usable in shared
  7. libraries. On other architectures, -fPIC is the same as -fpic so this
  8. patch doesn't affect such architectures.
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. ---
  11. src/Makefile | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/Makefile b/src/Makefile
  14. index 95fe549..c293611 100755
  15. --- a/src/Makefile
  16. +++ b/src/Makefile
  17. @@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
  18. x_%.o: %.cpp
  19. - $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
  20. + $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \
  21. -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
  22. $(LIB_NAME): $(OBJS2)
  23. --
  24. 2.6.3