0002-Fix-jimtcl-auto-configuration-to-force-static-librar.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. From 3bef159779c8fd39a070ec5c8191e18ba2efa79d Mon Sep 17 00:00:00 2001
  2. From: Claudio Laurita <claudio.laurita@integrazionetotale.it>
  3. Date: Sun, 30 Nov 2014 18:21:58 +0100
  4. Subject: [PATCH 2/2] Fix jimtcl auto configuration to force static library
  5. only. jimtcl ignores a --disable-shared option if a previous --enable-shared
  6. option was given. This breaks openocd compilation if shared was the preferred
  7. option in buildroot project.
  8. Signed-off-by: Claudio Laurita <claudio.laurita@integrazionetotale.it>
  9. --- a/jimtcl/auto.def
  10. +++ b/jimtcl/auto.def
  11. @@ -194,12 +194,8 @@
  12. msg-result "Enabling references"
  13. define JIM_REFERENCES
  14. }
  15. -if {[opt-bool shared with-jim-shared]} {
  16. - msg-result "Building shared library"
  17. -} else {
  18. - msg-result "Building static library"
  19. - define JIM_STATICLIB
  20. -}
  21. +msg-result "Building static library"
  22. +define JIM_STATICLIB
  23. define LIBSOEXT [format [get-define SH_SOEXTVER] [format %.2f [expr {[get-define JIM_VERSION] / 100.0}]]]
  24. define JIM_INSTALL [opt-bool install-jim]
  25. define JIM_DOCS [opt-bool docs]