Kaydet (Commit) dcb386d7 authored tarafından Petr Mladek's avatar Petr Mladek

let's own the packaged stuff by root:root again (fdo#67388)

We have started to use -fvisibility=hidden globally with GCC.
The hacky libgetuid.so does not work if the symbols are hidden.

In addition, the library was renamed from getuid.so to libgetuid.so
during gbuildisation; There was more location where it was not fixed;
The result was that the packages and files in the Linux download tarballs
were owned by some "ugly" user and group.

Change-Id: I22f62b861c373f2553dcccc85a84dddabaf1f418
üst 051b59ca
...@@ -14,6 +14,14 @@ $(eval $(call gb_Library_add_defs,getuid,\ ...@@ -14,6 +14,14 @@ $(eval $(call gb_Library_add_defs,getuid,\
-D_GNU_SOURCE \ -D_GNU_SOURCE \
)) ))
endif endif
# the library is used by LD_PRELOAD; make sure that we see the symbols ;-)
ifeq ($(COM),GCC)
$(eval $(call gb_Library_add_cflags,getuid,\
-fvisibility=default \
))
endif
$(eval $(call gb_Library_add_cobjects,getuid,\ $(eval $(call gb_Library_add_cobjects,getuid,\
setup_native/scripts/source/getuid \ setup_native/scripts/source/getuid \
)) ))
......
...@@ -194,7 +194,7 @@ sub get_path_for_library ...@@ -194,7 +194,7 @@ sub get_path_for_library
{ {
my ($includepatharrayref) = @_; my ($includepatharrayref) = @_;
my $getuidlibraryname = "getuid.so"; my $getuidlibraryname = "libgetuid.so";
my $getuidlibraryref = ""; my $getuidlibraryref = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment