Browse Source

Peter S. Mazinger writes:
Hello!

The attached patches remove unneeded -D<somedefine>, and uses instead
#ifdef __somedefine__

Joakim Tjernlund 19 years ago
parent
commit
9dca9ff973
2 changed files with 2 additions and 4 deletions
  1. 1 3
      utils/Makefile
  2. 1 1
      utils/ldd.c

+ 1 - 3
utils/Makefile

@@ -29,10 +29,8 @@ else
 TARGET_ICONV =
 endif
 
+# do we really need to reset XXFLAGS?
 XXFLAGS=
-ifeq ($(strip $(LDSO_LDD_SUPPORT)),y)
-XXFLAGS+= -D__LDSO_LDD_SUPPORT
-endif
 
 ifeq ($(strip $(HAVE_SHARED)),y)
 all:	$(TARGETS) $(TARGET_ICONV)

+ 1 - 1
utils/ldd.c

@@ -662,7 +662,7 @@ foo:
 	interpreter_already_found=0;
 	interp = find_elf_interpreter(ehdr);
 
-#ifdef __LDSO_LDD_SUPPORT
+#ifdef __LDSO_LDD_SUPPORT__
 	if (interp && (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN) && ehdr->e_ident[EI_CLASS] == ELFCLASSM &&
 			ehdr->e_ident[EI_DATA] == ELFDATAM
 			&& ehdr->e_ident[EI_VERSION] == EV_CURRENT && MATCH_MACHINE(ehdr->e_machine))