aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--USER/Makefile.PL2
-rw-r--r--USER/USER.xs11
2 files changed, 9 insertions, 4 deletions
diff --git a/USER/Makefile.PL b/USER/Makefile.PL
index 57bb152..ac19c4f 100644
--- a/USER/Makefile.PL
+++ b/USER/Makefile.PL
@@ -7,7 +7,7 @@ WriteMakefile(
# 'OPTIMIZE' => '-O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -ffast-math -fexpensive-optimizations',
'VERSION_FROM' => 'USER.pm',
'OBJECT' => 'USER.o', # link all the C files too
- 'LIBS' => ['-luser -lgmodule-2.0 -lglib-2.0 -lcrypt'], # e.g., '-lm'
+ 'LIBS' => ['-lgmodule-2.0 -lglib-2.0 -lcrypt -luser'], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '-I/usr/include/libuser -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include', # e.g., '-I. -I/usr/include/other'
'XSPROTOARG' => '-noprototypes',
diff --git a/USER/USER.xs b/USER/USER.xs
index 5505d95..23d5288 100644
--- a/USER/USER.xs
+++ b/USER/USER.xs
@@ -84,8 +84,8 @@ void
Admin_start(self)
USER::ADMIN *self
CODE:
- USER__ERR *error;
- self = lu_start(NULL, 0, NULL, NULL, NULL, NULL, &error);
+ USER__ERR *error = NULL;
+ self = lu_start(NULL, 0, NULL, NULL, lu_prompt_console_quiet, NULL, &error);
void
Admin_DESTROY(self)
@@ -221,5 +221,10 @@ Ent_get_attributes(self)
OUTPUT:
RETVAL
-
+MODULE = USER PACKAGE = USER PREFIX = User_
+void
+User_read_config_files()
+ CODE:
+ /*force read of /etc/sysconfig/userdrake*/
+