Skip to content

Commit c30e541

Browse files
committed
xxxx
1 parent cc3bc99 commit c30e541

File tree

2 files changed

+39
-25
lines changed

2 files changed

+39
-25
lines changed

Makefile.am

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,28 @@ noinst_HEADERS = \
346346

347347
###############################################################################
348348

349+
default_includes = \
350+
-I$(srcdir)/include/linux-private \
351+
-I$(srcdir)/include \
352+
-I$(builddir)/include \
353+
-I$(srcdir)/third_party/c-list/src \
354+
$(NULL)
355+
356+
default_cppflags = \
357+
$(extra_cppflags) \
358+
$(warn_cppflags) \
359+
$(defines_cppflags) \
360+
$(default_includes) \
361+
$(NULL)
362+
363+
###############################################################################
364+
365+
lib_cppflags = \
366+
$(default_cppflags) \
367+
$(NULL)
368+
369+
###############################################################################
370+
349371
# Hack to avoid using ylwrap. It does not function correctly in combination
350372
# with --header-file=
351373

@@ -382,6 +404,18 @@ grammar_files_sources = \
382404

383405
grammar_files_headers = $(grammar_files_sources:%.c=%.h)
384406

407+
noinst_LTLIBRARIES += lib/route/libnl-grammar.la
408+
409+
nodist_lib_route_libnl_grammar_la_SOURCES = \
410+
$(grammar_files_sources)
411+
lib_route_libnl_grammar_la_CPPFLAGS = \
412+
$(lib_cppflags) \
413+
-I$(srcdir)/lib/route \
414+
-Wno-unused-but-set-variable \
415+
$(NULL)
416+
417+
$(lib_route_libnl_grammar_la_OBJECTS): $(grammar_files_headers)
418+
385419
CLEANFILES += \
386420
$(grammar_files_sources) \
387421
$(grammar_files_headers)
@@ -395,26 +429,6 @@ EXTRA_DIST += \
395429

396430
###############################################################################
397431

398-
default_includes = \
399-
-I$(srcdir)/include/linux-private \
400-
-I$(srcdir)/include \
401-
-I$(builddir)/include \
402-
-I$(srcdir)/third_party/c-list/src \
403-
$(NULL)
404-
405-
default_cppflags = \
406-
$(extra_cppflags) \
407-
$(warn_cppflags) \
408-
$(defines_cppflags) \
409-
$(default_includes) \
410-
$(NULL)
411-
412-
###############################################################################
413-
414-
lib_cppflags = \
415-
$(default_cppflags) \
416-
$(NULL)
417-
418432
lib_LTLIBRARIES += lib/libnl-3.la
419433

420434
lib_libnl_3_la_SOURCES = \
@@ -540,8 +554,6 @@ lib_libnl_route_3_la_SOURCES = \
540554
lib/route/tc-api.h \
541555
lib/route/tc.c \
542556
$(NULL)
543-
nodist_lib_libnl_route_3_la_SOURCES = \
544-
$(grammar_files_sources)
545557
EXTRA_lib_libnl_route_3_la_DEPENDENCIES = \
546558
libnl-route-3.sym
547559
lib_libnl_route_3_la_CPPFLAGS = \
@@ -554,7 +566,9 @@ lib_libnl_route_3_la_LDFLAGS = \
554566
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
555567
-Wl,--version-script=$(srcdir)/libnl-route-3.sym
556568
lib_libnl_route_3_la_LIBADD = \
557-
lib/libnl-3.la
569+
lib/libnl-3.la \
570+
lib/route/libnl-grammar.la \
571+
$(NULL)
558572

559573
$(lib_libnl_route_3_la_OBJECTS): $(grammar_files_headers)
560574

tests/nl-test-util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ static void unshare_user(void)
149149
}
150150
r = fprintf(f, "0 %d 1", uid);
151151
_nltst_assert_errno(r > 0);
152-
_nltst_fclose(f);
152+
//_nltst_fclose(f);
153153

154154
/* Map current GID to root in NS to be created. */
155155
f = fopen("/proc/self/gid_map", "we");
156156
_nltst_assert_errno(f);
157157
r = fprintf(f, "0 %d 1", gid);
158158
_nltst_assert_errno(r > 0);
159-
_nltst_fclose(f);
159+
//_nltst_fclose(f);
160160
}
161161

162162
struct nltst_netns *nltst_netns_enter(void)

0 commit comments

Comments
 (0)