Skip to content
Snippets Groups Projects

test: fix some compilation issues on win32

6 unresolved threads

Of course, there are still some issue, like sigalarm not being implemented or libtool not being able to launch the test from WSL, but linking failure should be fixed when it compiles.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
26 26 ssize_t a = (foo); \
27 27 ssize_t b = (bar); \
28 28 if(a != b) { \
29 printf("Failed (%s) line %d : %ld != %ld\n", psz_tag, __LINE__, a, b ); \
29 printf("Failed (%s) line %d : %zi != %zi\n", psz_tag, __LINE__, a, b ); \
  • Steve Lhomme
    Steve Lhomme @robUx4 started a thread on commit 4c318641
  • 80 80
    81 81 TESTS = $(check_PROGRAMS) check_POTFILES.sh
    82 82
    83 AM_CFLAGS = -DSRCDIR=\"$(srcdir)\"
    83 AM_CFLAGS = $(CFLAGS_vlc)
  • Steve Lhomme
    Steve Lhomme @robUx4 started a thread on commit 9321fe1e
  • 1 AM_LDFLAGS = $(VLC_ldflags) -no-undefined
  • Steve Lhomme
    Steve Lhomme @robUx4 started a thread on commit 9321fe1e
  • 1 AM_LDFLAGS = $(VLC_ldflags) -no-undefined
    2 if HAVE_WIN32
    3 AM_LDFLAGS += -mwindows -Wc,-static
  • Steve Lhomme
    Steve Lhomme @robUx4 started a thread on commit 517a4c64
  • 86 86 LIBVLCCORE = -L../src/ -lvlccore
    87 87 LIBVLC = -L../lib -lvlc
    88 88
    89 if HAVE_WIN32
    90 AM_LDFLAGS += -mwindows -Wc,-static
  • 188 193 libvlc_demux_run_la_CPPFLAGS = $(AM_CPPFLAGS) \
    189 194 -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
    190 195 -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\"
    191 libvlc_demux_run_la_LDFLAGS = -no-install -static
    • No way. Those flags are there for reasons. Ditto below.

    • I'm more than willing to understand what are those reasons:

      -no-install
      
          Link an executable output-file that can’t be installed and therefore doesn’t need a wrapper script on systems that allow hardcoding of library paths. Useful if the program is only used in the build tree, e.g., for testing or generating other files.

      apply to executable files only, and LDFLAGS/LIBADD are not forwarded currently when linking convenience libraries.

      -static has an effect in libtool for convenience libraries, but I'm not sure of the point of doing it here.

    • -static has an effect in libtool for convenience libraries, but I'm not sure of the point of doing it here.

      Ok found it:

      As a rule of thumb, link a libtool convenience library into at most one libtool library, and never into a program, and link libtool static convenience libraries only into programs, and only if you need to carry library dependency information to the user of the static convenience library.

      Without -static, there is PIC.

    • Fuzzing needs this for performance, if not to work at all.

    • Please register or sign in to reply
  • Thomas Guillem approved this merge request

    approved this merge request

  • added MRStatus::Stale label and removed MRStatus::InReview label

  • Please register or sign in to reply
    Loading