* [Buildroot] [git commit branch/2022.02.x] package/belr: fix BR2_SHARED_STATIC_LIBS build
@ 2022-04-11 9:46 Peter Korsgaard
0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2022-04-11 9:46 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=fd87c506cb44dcd9d38800ba5712f2d45ae8069f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x
Fix the following build failure with BR2_SHARED_STATIC_LIBS:
CMake Error at src/CMakeLists.txt:56 (add_library):
add_library cannot create target "belr" because another target with the
same name already exists. The existing target is a static library created
in source directory
Fixes:
- http://autobuild.buildroot.org/results/d1ef96c8f370b5a522985c37f1681dd10bbc15bb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Peter: simplify/add comment explaining why]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit c9bee083e0baea16eb91af117033d0ff3fd290b1)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/belr/belr.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/belr/belr.mk b/package/belr/belr.mk
index f243830a85..26b949734f 100644
--- a/package/belr/belr.mk
+++ b/package/belr/belr.mk
@@ -17,9 +17,8 @@ BELR_CONF_OPTS = \
ifeq ($(BR2_STATIC_LIBS),y)
BELR_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
-else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
-BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=ON
-else ifeq ($(BR2_SHARED_LIBS),y)
+else
+# cannot build static and shared together
BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-11 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 9:46 [Buildroot] [git commit branch/2022.02.x] package/belr: fix BR2_SHARED_STATIC_LIBS build Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.