Skip to contentSkip to conversation

package/pcm-tools: fix static build

PATCH In review Fabrice Fontaine 2 participants 2 messages Jan 4, 2022 – Jan 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/pcm-tools: fix static build

Don't build c_example which needs a dynamic library and so will raise the following static build failure since bump to version 2021.10 in commit d1d93d488c76d4bc2551270007096693d8194435 and
https://github.com/opcm/pcm/commit/12647a6ee579c29bd306fd034470eb62dcb3156e:

/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: cannot find -lpcm

Fixes:
- http://autobuild.buildroot.org/results/1276a3d49c8848039f034e7f03632df365097e94

---
 package/pcm-tools/pcm-tools.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/pcm-tools/pcm-tools.mk +2 -1
index 8a58034232..d676df57f9 100644
@@ -17,7 +17,8 @@ define PCM_TOOLS_BUILD_CMDS
 	touch $(@D)/daemon-binaries
 	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
 		CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11 -fPIC" \
-		UNAME=Linux HOST=_LINUX
+		UNAME=Linux HOST=_LINUX \
+		$(foreach f,$(PCM_TOOLS_EXE_FILES),$(f).x)
 endef
 
 ifeq ($(BR2_PACKAGE_PCM_TOOLS_PMU_QUERY),y)
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Don't build c_example which needs a dynamic library and so will raise the following static build failure since bump to version 2021.10 in commit d1d93d488c76d4bc2551270007096693d8194435 and
https://github.com/opcm/pcm/commit/12647a6ee579c29bd306fd034470eb62dcb3156e:

/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: cannot find -lpcm

Fixes:
- http://autobuild.buildroot.org/results/1276a3d49c8848039f034e7f03632df365097e94

---
 package/pcm-tools/pcm-tools.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/pcm-tools/pcm-tools.mk +0 -0
index 8a58034232..d676df57f9 100644

package/pcm-tools/pcm-tools.mk define PCM_TOOLS_BUILD_CMDS · line 21

Quoted 6 lines
package/pcm-tools/pcm-tools.mk +2 -1
@@ -17,7 +17,8 @@ define PCM_TOOLS_BUILD_CMDS
 	touch $(@D)/daemon-binaries
 	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
 		CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11 -fPIC" \
-		UNAME=Linux HOST=_LINUX
+		UNAME=Linux HOST=_LINUX \
+		$(foreach f,$(PCM_TOOLS_EXE_FILES),$(f).x)

This could also have used addsuffix, but OK.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot