Revert "tests: Test extern'd globals on MacOS with the Apple Archiver"

This reverts commit d285be763f.

This is part of #10628 and needs to be reverted, as it breaks other
things.

See https://github.com/mesonbuild/meson/pull/10628#issuecomment-1230560772
pull/10976/head
Eli Schwartz 2 years ago
parent 4533dfc279
commit f9d6ae8d57
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 9
      test cases/osx/9 global variable ar/libfile.c
  2. 7
      test cases/osx/9 global variable ar/libfile2.c
  3. 6
      test cases/osx/9 global variable ar/meson.build
  4. 2
      test cases/osx/9 global variable ar/nativefile.ini
  5. 7
      test cases/osx/9 global variable ar/prog.c

@ -1,9 +0,0 @@
// Source: https://lists.gnu.org/archive/html/libtool/2002-07/msg00025.html
#include <stdio.h>
extern int l2;
void l1(void)
{
printf("l1 %d\n", l2);
}

@ -1,7 +0,0 @@
// Source: https://lists.gnu.org/archive/html/libtool/2002-07/msg00025.html
int l2;
void l2_func(void)
{
l2 = 77;
}

@ -1,6 +0,0 @@
# Source: https://lists.gnu.org/archive/html/libtool/2002-07/msg00025.html
project('global variable test', 'c')
lib = static_library('mylib', 'libfile.c', 'libfile2.c')
test('global variable', executable('prog', 'prog.c', link_with: lib))

@ -1,7 +0,0 @@
// Source: https://lists.gnu.org/archive/html/libtool/2002-07/msg00025.html
extern void l1(void);
int main(void)
{
l1();
}
Loading…
Cancel
Save