summaryrefslogtreecommitdiff
path: root/grp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'grp/Makefile')
-rw-r--r--grp/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/grp/Makefile b/grp/Makefile
index 8c63a4c65e..7f2734e034 100644
--- a/grp/Makefile
+++ b/grp/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1991, 1992, 1996, 1997, 1998 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -29,3 +29,11 @@ routines := fgetgrent initgroups setgroups \
tests := testgrp
include ../Rules
+
+# We can later add the names of other thread packages here.
+ifeq (,$(findstring linuxthreads,$(add-ons)))
+
+CFLAGS-getgrgid_r.c = -DUSE_NSCD=1
+CFLAGS-getgrnam_r.c = -DUSE_NSCD=1
+
+endif