Skip to content

Commit

Permalink
libnetplan: hide all symbols by default
Browse files Browse the repository at this point in the history
Only those marked by NETPLAN_{PUBLIC,INTERNAL,ABI} will be available to
the loader.
  • Loading branch information
schopin-pro committed Sep 24, 2021
1 parent 51bed3a commit f8c716f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ default: netplan/_features.py generate netplan-dbus dbus/io.netplan.Netplan.serv
$(CC) $(BUILDFLAGS) $(CFLAGS) $(LDFLAGS) -c $^ `pkg-config --cflags --libs glib-2.0 gio-2.0 yaml-0.1 uuid`

libnetplan.so.$(NETPLAN_SOVER): $(SRCS)
$(CC) -shared -Wl,-soname,libnetplan.so.$(NETPLAN_SOVER) $(BUILDFLAGS) $(CFLAGS) `pkg-config --cflags glib-2.0 gio-2.0 yaml-0.1 uuid` -o $@ $^ `pkg-config --libs glib-2.0 gio-2.0 yaml-0.1 uuid`
$(CC) -shared -Wl,-soname,libnetplan.so.$(NETPLAN_SOVER) $(BUILDFLAGS) $(CFLAGS) `pkg-config --cflags glib-2.0 gio-2.0 yaml-0.1 uuid` -o $@ $^ `pkg-config --libs glib-2.0 gio-2.0 yaml-0.1 uuid` -fvisibility=hidden
ln -snf libnetplan.so.$(NETPLAN_SOVER) libnetplan.so

generate: libnetplan.so.$(NETPLAN_SOVER) generate.o
Expand Down

0 comments on commit f8c716f

Please sign in to comment.