Skip to content

Commit

Permalink
package/putty: fix static build
Browse files Browse the repository at this point in the history
Fix the following static build failure raised since bump to version 0.78
in commit 5673ea3:

In file included from /home/buildroot/autobuild/instance-0/output-1/build/putty-0.78/putty.h:8,
                 from /home/buildroot/autobuild/instance-0/output-1/build/putty-0.78/callback.c:8:
/home/buildroot/autobuild/instance-0/output-1/build/putty-0.78/unix/platform.h:11:10: fatal error: dlfcn.h: No such file or directory
   11 | #include <dlfcn.h>                     /* Dynamic library loading */
      |          ^~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/06f0b14bd0414f97b06070198e290fb3253348c5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  • Loading branch information
ffontaine authored and jacmet committed Dec 1, 2023
1 parent 8b39931 commit 3d8e0a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/putty/putty.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ else ifeq ($(BR2_PACKAGE_LIBGTK2),y)
PUTTY_DEPENDENCIES += libgtk2
endif

ifeq ($(BR2_STATIC_LIBS),y)
PUTTY_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -DNO_LIBDL"
endif

$(eval $(cmake-package))

0 comments on commit 3d8e0a2

Please sign in to comment.