Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 798474
Collapse All | Expand All

(-)a/INCHI_API/libinchi/gcc/makefile (+6 lines)
Lines 182-192 sha2.o \ Link Here
182
strutil.o	\
182
strutil.o	\
183
util.o
183
util.o
184
# === InChI Library link rule =========
184
# === InChI Library link rule =========
185
ifdef STATIC
186
$(INCHI_LIB_PATHNAME).a: $(INCHI_LIB_OBJS)
187
	$(AR) rcs $(INCHI_LIB_PATHNAME).a $(INCHI_LIB_OBJS)
188
	$(RANLIB) $(INCHI_LIB_PATHNAME).a
189
else
185
$(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS)
190
$(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS)
186
	$(SHARED_LINK) $(SHARED_LINK_PARM) -o $(INCHI_LIB_PATHNAME).so$(VERSION)	\
191
	$(SHARED_LINK) $(SHARED_LINK_PARM) -o $(INCHI_LIB_PATHNAME).so$(VERSION)	\
187
$(INCHI_LIB_OBJS) -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) -lm
192
$(INCHI_LIB_OBJS) -Wl$(LINUX_MAP)$(LINUX_Z_RELRO),-soname,$(INCHI_LIB_NAME).so$(MAIN_VERSION) -lm
188
	ln -fs $(INCHI_LIB_NAME).so$(VERSION)	\
193
	ln -fs $(INCHI_LIB_NAME).so$(VERSION)	\
189
$(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)
194
$(INCHI_LIB_PATHNAME).so$(MAIN_VERSION)
195
endif
190
# === InChI Library compile rule =========
196
# === InChI Library compile rule =========
191
%.o: $(P_LIBR)%.c
197
%.o: $(P_LIBR)%.c
192
	$(C_COMPILER) $(C_SO_OPTIONS) $(C_OPTIONS) $<
198
	$(C_COMPILER) $(C_SO_OPTIONS) $(C_OPTIONS) $<
(-)a/INCHI_EXE/inchi-1/gcc/makefile (+4 lines)
Lines 36-43 ifndef P_BASE Link Here
36
endif
36
endif
37
#P_INCL = -I$(P_MAIN) -I$(P_BASE)
37
#P_INCL = -I$(P_MAIN) -I$(P_BASE)
38
P_INCL = -I$(P_MAIN) -I$(P_BASE)
38
P_INCL = -I$(P_MAIN) -I$(P_BASE)
39
ifndef C_COMPILER_OPTIONS
39
C_COMPILER_OPTIONS = $(P_INCL) -ansi -DCOMPILE_ANSI_ONLY -DTARGET_EXE_STANDALONE -O3 -c
40
C_COMPILER_OPTIONS = $(P_INCL) -ansi -DCOMPILE_ANSI_ONLY -DTARGET_EXE_STANDALONE -O3 -c
40
#C_COMPILER_OPTIONS = -c $(P_INCL) -ansi -O3 -fsigned-char -ffunction-sections -fexpensive-optimizations -fstack-check -fexceptions -Wall -pedantic -Wbad-function-cast -Wreturn-type -Wformat -Wuninitialized -Wcast-align -Wshadow -Wunused -Wunused-value -Wunused-variable -Wunused-function -Wunused-parameter -Wunused-label -Wcomment -Wcast-qual -Wconversion -Wimplicit-int -Wmissing-braces -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wsign-compare -Wfloat-equal -Wstrict-prototypes -Wwrite-strings -Wundef -Waggregate-return -Wchar-subscripts -Wformat-nonliteral -Wnested-externs -Wsequence-point -Wpointer-arith -mfancy-math-387 -mieee-fp -mno-soft-float
41
#C_COMPILER_OPTIONS = -c $(P_INCL) -ansi -O3 -fsigned-char -ffunction-sections -fexpensive-optimizations -fstack-check -fexceptions -Wall -pedantic -Wbad-function-cast -Wreturn-type -Wformat -Wuninitialized -Wcast-align -Wshadow -Wunused -Wunused-value -Wunused-variable -Wunused-function -Wunused-parameter -Wunused-label -Wcomment -Wcast-qual -Wconversion -Wimplicit-int -Wmissing-braces -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wsign-compare -Wfloat-equal -Wstrict-prototypes -Wwrite-strings -Wundef -Waggregate-return -Wchar-subscripts -Wformat-nonliteral -Wnested-externs -Wsequence-point -Wpointer-arith -mfancy-math-387 -mieee-fp -mno-soft-float
42
endif
43
ifndef CPP_COMPILER_OPTIONS
41
ifdef windir
44
ifdef windir
42
# no -ansi option due to reported MinGw bug
45
# no -ansi option due to reported MinGw bug
43
	CPP_COMPILER_OPTIONS = $(P_INCL) -D_LIB -DTARGET_EXE_STANDALONE -O3 -frtti -c
46
	CPP_COMPILER_OPTIONS = $(P_INCL) -D_LIB -DTARGET_EXE_STANDALONE -O3 -frtti -c
Lines 46-51 else Link Here
46
	CPP_COMPILER_OPTIONS = $(P_INCL) -D_LIB -DTARGET_EXE_STANDALONE -ansi -O3 -frtti -c
49
	CPP_COMPILER_OPTIONS = $(P_INCL) -D_LIB -DTARGET_EXE_STANDALONE -ansi -O3 -frtti -c
47
	#CPP_COMPILER_OPTIONS = -c $(P_INCL) -D_LIB -ansi -O3 -frtti -Wall -pedantic -Wreturn-type -Wformat -Wuninitialized -ffunction-sections -fexpensive-optimizations -fstack-check -fexceptions -Wcast-align -Wshadow -Wunused -Wunused-value -Wunused-variable -Wunused-function -fsigned-char -Wcast-qual -Wconversion -Wmissing-braces -Wredundant-decls -Wsign-compare -Wfloat-equal -Wwrite-strings -mfancy-math-387 -mieee-fp -mno-soft-float
50
	#CPP_COMPILER_OPTIONS = -c $(P_INCL) -D_LIB -ansi -O3 -frtti -Wall -pedantic -Wreturn-type -Wformat -Wuninitialized -ffunction-sections -fexpensive-optimizations -fstack-check -fexceptions -Wcast-align -Wshadow -Wunused -Wunused-value -Wunused-variable -Wunused-function -fsigned-char -Wcast-qual -Wconversion -Wmissing-braces -Wredundant-decls -Wsign-compare -Wfloat-equal -Wwrite-strings -mfancy-math-387 -mieee-fp -mno-soft-float
48
endif
51
endif
52
endif
49
#LINKER_OPTIONS = -static-libgcc
53
#LINKER_OPTIONS = -static-libgcc
50
#LINKER_OPTIONS = -Wall -Wunused -Wunused-function
54
#LINKER_OPTIONS = -Wall -Wunused -Wunused-function
51
INCHI_SRCS = $(P_LIBR)/ichi_bns.c	\
55
INCHI_SRCS = $(P_LIBR)/ichi_bns.c	\

Return to bug 798474